Fire Axe [New syndie item] (#9088)

This commit is contained in:
EmoGarbage404
2022-06-23 21:27:28 -04:00
committed by GitHub
parent bbb4537f53
commit 1c7a09b736
11 changed files with 84 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
namespace Content.Server.Atmos.Components;
[RegisterComponent]
public sealed class IgniteOnMeleeHitComponent : Component
{
[DataField("fireStacks")]
public float FireStacks { get; set; }
}

View File

@@ -3,6 +3,7 @@ using Content.Server.Atmos.Components;
using Content.Server.Stunnable;
using Content.Server.Temperature.Components;
using Content.Server.Temperature.Systems;
using Content.Server.Weapon.Melee;
using Content.Shared.ActionBlocker;
using Content.Shared.Alert;
using Content.Shared.Atmos;
@@ -46,6 +47,20 @@ namespace Content.Server.Atmos.EntitySystems
SubscribeLocalEvent<FlammableComponent, IsHotEvent>(OnIsHotEvent);
SubscribeLocalEvent<FlammableComponent, TileFireEvent>(OnTileFireEvent);
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)

View File

@@ -64,6 +64,14 @@
description: A small energy blade conveniently disguised in the form of a pen.
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
- type: uplinkListing

View File

@@ -32,4 +32,22 @@
- type: Tool
qualities:
- 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

View File

@@ -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