Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonlethal Weapon for an ONI #371

Merged
merged 3 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions Resources/Prototypes/Floof/Entities/Objects/Weapons/Melee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
- type: entity
name: brass knuckles
parent: ClothingHandsBase
id: WeaponBrassKnuckles
description: Ever wanted to protect your bar but your hands are too big for guns? S.E.S.W.C has what you need!
components:
- type: Sprite
sprite: Floof/Objects/Weapons/Melee/brassknuckles.rsi
state: icon
- type: Clothing
sprite: Floof/Objects/Weapons/Melee/brassknuckles.rsi
- type: MeleeWeapon
autoAttack: true
attackRate: 2 # ~12 dps
damage:
types:
Blunt: 6
soundHit:
collection: Punch
animation: WeaponArcFist
mustBeEquippedToUse: true
- type: StaminaDamageOnHit
damage: 11
- type: Armor
modifiers:
coefficients:
Shock: 1.05 # oh no so conductive
- type: Insulated
coefficient: 1.5 # Extra damage. Don't punch wires, kids.
- type: Tag
tags:
- WhitelistChameleon
- BrassKnuckles
- type: PhysicalComposition
materialComposition:
Brass: 1000
- type: StaticPrice
price: 30 # Ensures these can be sold and have a reasonable vending value.

- type: entity
name: improvised brass knuckles
parent: WeaponBrassKnuckles
id: WeaponBrassKnucklesImprovised
description: Ever wanted to punch just a little harder?
components:
- type: MeleeWeapon
attackRate: 1.6 # ~9.6 dps
- type: Construction
graph: GraphWeaponBrassKnucklesImprovised
node: WeaponBrassKnucklesImprovised

- type: entity
name: crass knuckles
parent: WeaponBrassKnuckles
id: WeaponBrassKnucklesWhoopie
description: Questionably silent, questionably deadly.
components:
- type: Sprite
sprite: Floof/Objects/Weapons/Melee/crassknuckles.rsi
state: icon
- type: Clothing
sprite: Floof/Objects/Weapons/Melee/crassknuckles.rsi
- type: MeleeWeapon
damage:
types:
Blunt: 0 # ~0 dps :^)
Structural: 0
soundHit:
collection: Parp
- type: Construction
graph: GraphWeaponBrassKnucklesWhoopie
node: WeaponBrassKnucklesWhoopie
- type: StaminaDamageOnHit
damage: 4 # 8 per second, similar to the toy hammer
- type: Armor
modifiers:
coefficients:
Shock: 1.0 # Nothing special.
- type: Insulated
coefficient: 1 # Nothing special.
- type: Tag
tags:
- WhitelistChameleon
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- type: constructionGraph
id: GraphWeaponBrassKnucklesImprovised
start: start
graph:
- node: start
edges:
- to: WeaponBrassKnucklesImprovised
steps:
- material: Brass
amount: 10
doAfter: 4
- node: WeaponBrassKnucklesImprovised
entity: WeaponBrassKnucklesImprovised

- type: constructionGraph
id: GraphWeaponBrassKnucklesWhoopie
start: start
graph:
- node: start
edges:
- to: WeaponBrassKnucklesWhoopie
steps:
- tag: BrassKnuckles
icon:
sprite: Floof/Objects/Weapons/Melee/brassknuckles.rsi
state: icon
name: brass knuckles
doAfter: 2
- tag: WhoopieCushion
icon:
sprite: Objects/Fun/whoopie.rsi
state: icon
name: whoopie cushion
doAfter: 2
- node: WeaponBrassKnucklesWhoopie
entity: WeaponBrassKnucklesWhoopie
26 changes: 26 additions & 0 deletions Resources/Prototypes/Floof/Recipes/Crafting/improvised.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,29 @@
sprite: Floof/Structures/sleepingbag.rsi
state: open
objectType: Item

- type: construction
name: improvised brass knuckles
id: BrassKnucklesImprovised
graph: GraphWeaponBrassKnucklesImprovised
startNode: start
targetNode: WeaponBrassKnucklesImprovised
category: construction-category-weapons
description: Ever wanted to punch just a little harder?
icon:
sprite: Floof/Objects/Weapons/Melee/brassknuckles.rsi
state: icon
objectType: Item

- type: construction
name: crass knuckles
id: CrassKnuckles
graph: GraphWeaponBrassKnucklesWhoopie
startNode: start
targetNode: WeaponBrassKnucklesWhoopie
category: construction-category-weapons
description: Questionably silent, unquestionably deadly.
icon:
sprite: Floof/Objects/Weapons/Melee/crassknuckles.rsi
state: icon
objectType: Item
17 changes: 17 additions & 0 deletions Resources/Prototypes/Loadouts/Jobs/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,23 @@
items:
- WeaponSniperMosinRubber

- type: loadout # Floof
id: LoadoutServiceBartenderBrassKnuckles
category: JobsServiceBartender
cost: 0
exclusive: true
requirements:
- !type:CharacterItemGroupRequirement
group: LoadoutBartenderWeapon
- !type:CharacterJobRequirement
jobs:
- Bartender
- !type:CharacterSpeciesRequirement
species:
- Oni
items:
- WeaponBrassKnuckles

- type: loadout
id: LoadoutServiceJumpsuitBartenderNt
category: JobsServiceBartender
Expand Down
5 changes: 5 additions & 0 deletions Resources/Prototypes/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1363,3 +1363,8 @@

- type: Tag
id: WriteIgnoreStamps

#Floof tags

- type: Tag
id: BrassKnuckles
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "icon by Whatstone, inhand-left, inhand-right by VividPups, equipped-HAND by VividPups and modified by Whatstone",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-HAND",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "icon by Whatstone, inhand-left, inhand-right, equipped-HAND by VividPups, modified by Whatstone",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-HAND",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}
Loading