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

Restore explosive crossbow bolts, add shrapnel bolt #2317

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
- sprite: _NF/Objects/Weapons/Guns/Projectiles/crossbow_bolts.rsi
state: icon-bolt-stake
map: [ stake ]
- sprite: _NF/Objects/Weapons/Guns/Projectiles/crossbow_bolts.rsi
state: icon-bolt-shell
map: [ shrapnel ]
visible: false
- type: Item
size: Normal
Expand Down Expand Up @@ -110,6 +113,7 @@
- CrossbowBoltExplosive
- CrossbowBoltEMP
- CrossbowBoltIncendiary
- CrossbowBoltShrapnel
- Plunger
- Bread
- MailCapsule
Expand All @@ -136,6 +140,7 @@
- bread
- mail
- stake
- shrapnel
mapLayers:
bolt:
whitelist:
Expand Down Expand Up @@ -193,6 +198,10 @@
whitelist:
tags:
- WeaponMeleeStake
shrapnel:
whitelist:
tags:
- CrossbowBoltShrapnel

- type: entity
id: BaseCrossbowWieldable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,46 @@
types:
Blunt: 30 # Should prevent re-using

- type: Tag
id: CrossbowBoltShrapnel

- type: entity
parent: BaseCrossbowBoltTrigger
id: CrossbowBoltShrapnel
name: shrapnel bolt
description: A bolt with a buckshot shotgun shell attached to it.
components:
- type: Tag
tags:
- CrossbowBoltShrapnel
- type: Sprite
layers:
- state: tail
color: "#9b0048"
- state: rod
color: "#767676"
- state: charge
color: "#801000"
- state: tip
- state: solution1
map: ["enum.SolutionContainerLayers.Fill"]
visible: false
- type: Projectile
damage:
types:
Blunt: 5
- type: ClusterGrenade
fillPrototype: PelletShotgun
maxGrenadesCount: 6
grenadeType: enum.GrenadeType.Shoot
- type: Construction
graph: CraftCrossbowBoltShrapnel
node: CraftCrossbowBoltShrapnel
- type: DamageOnLand
damage:
types:
Blunt: 30 # Should prevent re-using

# Blood cult
- type: entity
parent:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@
sprite: Objects/Weapons/Guns/Ammunition/Casings/shotgun_shell.rsi
state: base
doAfter: 1
- component: Explosive
name: Firebomb
icon:
sprite: Objects/Weapons/Bombs/ied.rsi
state: base
doAfter: 1
- node: CraftCrossbowBoltExplosive
entity: CrossbowBoltExplosive

Expand All @@ -140,16 +146,25 @@
steps:
- material: MetalRod
amount: 1
doAfter: 0.5
doAfter: 0.4
- material: Cloth
amount: 1
doAfter: 0.5
- tag: PowerCellSmall
name: Small power cell
doAfter: 0.4
- material: Cable
amount: 5
doAfter: 0.4
- component: PowerCell
name: Power cell
icon:
sprite: Objects/Power/power_cells.rsi
state: small
doAfter: 1
state: high
doAfter: 0.4
- component: LogicGate
name: Logic gate
icon:
sprite: Objects/Devices/gates.rsi
state: base
doAfter: 0.4
- node: CraftCrossbowBoltEMP
entity: CrossbowBoltEMP

Expand All @@ -175,3 +190,26 @@
doAfter: 1
- node: CraftCrossbowBoltIncendiary
entity: CrossbowBoltIncendiary

- type: constructionGraph
id: CraftCrossbowBoltShrapnel
start: start
graph:
- node: start
edges:
- to: CraftCrossbowBoltShrapnel
steps:
- material: MetalRod
amount: 1
doAfter: 0.5
- material: Cloth
amount: 1
doAfter: 0.5
- tag: ShellShotgun
name: Shotgun shell
icon:
sprite: Objects/Weapons/Guns/Ammunition/Casings/shotgun_shell.rsi
state: base
doAfter: 1
- node: CraftCrossbowBoltShrapnel
entity: CrossbowBoltShrapnel
13 changes: 11 additions & 2 deletions Resources/Prototypes/_NF/Recipes/Construction/weapons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@

- type: construction
name: explosive bolt
hide: true # Fix later
id: CraftCrossbowBoltExplosive
graph: CraftCrossbowBoltExplosive
startNode: start
Expand All @@ -78,7 +77,6 @@

- type: construction
name: EMP bolt
hide: true # Fix later
id: CraftCrossbowBoltEMP
graph: CraftCrossbowBoltEMP
startNode: start
Expand All @@ -99,6 +97,17 @@
icon: { sprite: _NF/Objects/Weapons/Guns/Projectiles/crossbow_bolts.rsi, state: icon-bolt-incendiary }
objectType: Item

- type: construction
name: shrapnel bolt
id: CraftCrossbowBoltShrapnel
graph: CraftCrossbowBoltShrapnel
startNode: start
targetNode: CraftCrossbowBoltShrapnel
category: construction-category-weapons
description: A bolt with a buckshot shotgun shell attached to it.
icon: { sprite: _NF/Objects/Weapons/Guns/Projectiles/crossbow_bolts.rsi, state: icon-bolt-shell }
objectType: Item

- type: construction
name: wooden stake
id: RecipeWoodenStake
Expand Down
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
Expand Up @@ -43,6 +43,9 @@
{
"name": "icon-bolt-plunger"
},
{
"name": "icon-bolt-shell"
},
{
"name": "icon-bolt-baguette"
},
Expand Down
Loading