Fire Axe [New syndie item] (#9088)
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
namespace Content.Server.Atmos.Components;
|
||||||
|
|
||||||
|
[RegisterComponent]
|
||||||
|
public sealed class IgniteOnMeleeHitComponent : Component
|
||||||
|
{
|
||||||
|
[DataField("fireStacks")]
|
||||||
|
public float FireStacks { get; set; }
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ using Content.Server.Atmos.Components;
|
|||||||
using Content.Server.Stunnable;
|
using Content.Server.Stunnable;
|
||||||
using Content.Server.Temperature.Components;
|
using Content.Server.Temperature.Components;
|
||||||
using Content.Server.Temperature.Systems;
|
using Content.Server.Temperature.Systems;
|
||||||
|
using Content.Server.Weapon.Melee;
|
||||||
using Content.Shared.ActionBlocker;
|
using Content.Shared.ActionBlocker;
|
||||||
using Content.Shared.Alert;
|
using Content.Shared.Alert;
|
||||||
using Content.Shared.Atmos;
|
using Content.Shared.Atmos;
|
||||||
@@ -46,6 +47,20 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
SubscribeLocalEvent<FlammableComponent, IsHotEvent>(OnIsHotEvent);
|
SubscribeLocalEvent<FlammableComponent, IsHotEvent>(OnIsHotEvent);
|
||||||
SubscribeLocalEvent<FlammableComponent, TileFireEvent>(OnTileFireEvent);
|
SubscribeLocalEvent<FlammableComponent, TileFireEvent>(OnTileFireEvent);
|
||||||
SubscribeLocalEvent<IgniteOnCollideComponent, StartCollideEvent>(IgniteOnCollide);
|
SubscribeLocalEvent<IgniteOnCollideComponent, StartCollideEvent>(IgniteOnCollide);
|
||||||
|
SubscribeLocalEvent<IgniteOnMeleeHitComponent, MeleeHitEvent>(OnMeleeHit);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnMeleeHit(EntityUid uid, IgniteOnMeleeHitComponent component, MeleeHitEvent args)
|
||||||
|
{
|
||||||
|
foreach (var entity in args.HitEntities)
|
||||||
|
{
|
||||||
|
if (!TryComp<FlammableComponent>(entity, out var flammable))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
flammable.FireStacks += component.FireStacks;
|
||||||
|
Ignite(entity, flammable);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void IgniteOnCollide(EntityUid uid, IgniteOnCollideComponent component, StartCollideEvent args)
|
private void IgniteOnCollide(EntityUid uid, IgniteOnCollideComponent component, StartCollideEvent args)
|
||||||
|
|||||||
@@ -64,6 +64,14 @@
|
|||||||
description: A small energy blade conveniently disguised in the form of a pen.
|
description: A small energy blade conveniently disguised in the form of a pen.
|
||||||
price: 2
|
price: 2
|
||||||
|
|
||||||
|
- type: uplinkListing
|
||||||
|
id: UplinkFireAxeFlaming
|
||||||
|
category: Weapons
|
||||||
|
itemId: FireAxeFlaming
|
||||||
|
listingName: Fire Axe
|
||||||
|
description: A classic-style weapon infused with advanced atmos technology to allow it to set targets on fire.
|
||||||
|
price: 9
|
||||||
|
|
||||||
# Explosives
|
# Explosives
|
||||||
|
|
||||||
- type: uplinkListing
|
- type: uplinkListing
|
||||||
|
|||||||
@@ -33,3 +33,21 @@
|
|||||||
qualities:
|
qualities:
|
||||||
- Prying
|
- Prying
|
||||||
- type: TilePrying
|
- type: TilePrying
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: FireAxeFlaming
|
||||||
|
name: fire axe
|
||||||
|
parent: FireAxe
|
||||||
|
description: Why fight fire with an axe when you can fight with fire and axe?
|
||||||
|
components:
|
||||||
|
- type: IgniteOnMeleeHit
|
||||||
|
fireStacks: 2
|
||||||
|
- type: Sprite
|
||||||
|
sprite: Objects/Weapons/Melee/fireaxeflaming.rsi
|
||||||
|
state: icon
|
||||||
|
- type: Clothing
|
||||||
|
size: 20
|
||||||
|
sprite: Objects/Weapons/Melee/fireaxeflaming.rsi
|
||||||
|
quickEquip: false
|
||||||
|
Slots:
|
||||||
|
- back
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 768 B |
Binary file not shown.
|
After Width: | Height: | Size: 334 B |
Binary file not shown.
|
After Width: | Height: | Size: 503 B |
Binary file not shown.
|
After Width: | Height: | Size: 512 B |
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"license": "CC-BY-NC-SA-3.0",
|
||||||
|
"copyright": "Taken and modified by Taral from goonstation at commit https://github.com/goonstation/goonstation/pull/2816/commits/b99c5dff45a6527bbf698bc00f7d24b8ca75a806 and then further modified by EmoGarbage404",
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "icon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "inhand-left",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "inhand-right",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "wielded-inhand-left",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "wielded-inhand-right",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "equipped-BACKPACK",
|
||||||
|
"directions": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 508 B |
Binary file not shown.
|
After Width: | Height: | Size: 537 B |
Reference in New Issue
Block a user