Lanterns Can Break (#1450)

* Lanterns now break in two swings. I don't wanna see anyone saying that lanterns are a great one handed weapon again.

* Lanterns can survive one fireball, as a treat.
This commit is contained in:
paige404
2025-06-20 05:51:11 -04:00
committed by GitHub
parent 5714011471
commit 7238698aa3
2 changed files with 36 additions and 1 deletions

View File

@@ -19,6 +19,32 @@
breakOnMove: false
slots:
- belt
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: CP14Metallic
- type: CP14MeleeSelfDamage
damageToSelf:
types:
Structural: 10 #little jank, but Metallic is resistant to Blunt. Breaks in 3 strikes, or 2 fireballs.
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
- !type:SpawnEntitiesBehavior
spawn:
CP14ScrapCopper:
min: 1
max: 2
CP14ScrapIron:
min: 0
max: 1
- type: MeleeWeapon
attackRate: 0.6
wideAnimationRotation: 10

View File

@@ -36,7 +36,8 @@
True: { visible: true }
False: { visible: false }
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: CP14Metallic
- type: Destructible
thresholds:
- trigger:
@@ -45,6 +46,14 @@
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
- !type:SpawnEntitiesBehavior
spawn:
CP14ScrapCopper:
min: 1
max: 3
- type: CP14MagicLantern
- type: CP14MagicEnergyDraw
energy: -0.1