Death Nettle changes (#25253)
* Added ThornyComponent, ThornyImmuneComponent, and ThornySystem, as well as changed Botanists glove's to have the ThornyImmuneComponent, and for Death Nettle to have the ThornyComponent. * Added heat damage to the player if they pickup nettle without gloves. Also displays a popup message . * Revised OnHandPickUp method and reduced whitespace * Touching death nettle without gloves now does damage split between heat and caustic, and does more damage. * File-scoped namespace adherence * Code revisions, and removal of old file. * Removed thornyImmune key from botanist's gloves in gloves.yml for cleanup / yaml linter * Adds new generic DamageOnPickup, still very WIP * Starting on localization, removed _Notes.txt, adds immunity component * Added OnPickupDamageImmune component to botanists gloves * Removed botany specific components/system, moved to generic DamageOnPickup. Added code comments. Extra checks in component for whether to toss an item, damage an entity. Still WIP. * changes to audio and popups * Removes my system/component/ftl in favor of DamageOnInteract, tweaking values * me stupid * Death nettle will 'wilt' after 5 hits * added interaction delay to stop spam clicking, added a 10% stun (paralyze) chance * minor changes/cleanup * more minor changes and cleanup * Reduced maximum amatoxin within fly amanita spores. * Readjusted to allow more than 5 amatoxin above 50 potency * Remove Debug.Log statement from system * Mark Death Nettle as major contraband.
This commit is contained in:
@@ -171,6 +171,11 @@
|
||||
fiberMaterial: fibers-leather
|
||||
fiberColor: fibers-brown
|
||||
- type: FingerprintMask
|
||||
- type: DamageOnInteractProtection
|
||||
damageProtection:
|
||||
flatReductions:
|
||||
Heat: 10
|
||||
Caustic: 5
|
||||
|
||||
- type: entity
|
||||
parent: ClothingHandsBase
|
||||
|
||||
@@ -250,7 +250,7 @@
|
||||
name: death nettle
|
||||
description: This nettle's out for blood.
|
||||
id: DeathNettle
|
||||
parent: ProduceBase
|
||||
parent: [ProduceBase, BaseMajorContraband]
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Specific/Hydroponics/death_nettle.rsi
|
||||
@@ -261,24 +261,56 @@
|
||||
- type: MeleeWeapon
|
||||
damage:
|
||||
types:
|
||||
Heat: 8.5
|
||||
Caustic: 8.5
|
||||
Heat: 8
|
||||
Caustic: 8
|
||||
- type: SolutionContainerManager
|
||||
solutions:
|
||||
food:
|
||||
reagents:
|
||||
- ReagentId: SulfuricAcid
|
||||
Quantity: 3
|
||||
Quantity: 15
|
||||
- ReagentId: FluorosulfuricAcid
|
||||
Quantity: 3
|
||||
Quantity: 15
|
||||
- type: Produce
|
||||
seedId: deathNettle
|
||||
- type: MeleeChemicalInjector
|
||||
transferAmount: 2
|
||||
transferAmount: 5
|
||||
solution: food
|
||||
pierceArmor: false
|
||||
pierceArmor: true
|
||||
- type: Extractable
|
||||
grindableSolutionName: food
|
||||
- type: DamageOnInteract
|
||||
damage:
|
||||
types:
|
||||
Heat: 4
|
||||
Caustic: 4
|
||||
throw: true
|
||||
throwSpeed: 3
|
||||
interactTimer: 2 # Stop the player from spam clicking the entity
|
||||
ignoreResistances: false
|
||||
popupText: powered-light-component-burn-hand
|
||||
interactSound: /Audio/Effects/lightburn.ogg
|
||||
stunChance: 0.10
|
||||
stunSeconds: 1.5
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 25
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Voice/Diona/diona_salute.ogg
|
||||
params:
|
||||
volume: -5
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: DamageOnHit
|
||||
damage:
|
||||
types:
|
||||
Blunt: 5 # The nettle will "wilt" after 5 hits.
|
||||
|
||||
- type: entity
|
||||
name: banana
|
||||
@@ -1791,10 +1823,10 @@
|
||||
- type: SolutionContainerManager
|
||||
solutions:
|
||||
food:
|
||||
maxVol: 30
|
||||
maxVol: 15
|
||||
reagents:
|
||||
- ReagentId: Amatoxin
|
||||
Quantity: 25
|
||||
Quantity: 10
|
||||
- ReagentId: Nutriment
|
||||
Quantity: 5
|
||||
- type: Sprite
|
||||
|
||||
@@ -1402,8 +1402,8 @@
|
||||
chemicals:
|
||||
Amatoxin:
|
||||
Min: 1
|
||||
Max: 25
|
||||
PotencyDivisor: 4
|
||||
Max: 10
|
||||
PotencyDivisor: 12
|
||||
Nutriment: ## yumby :)
|
||||
Min: 1
|
||||
Max: 5
|
||||
|
||||
Reference in New Issue
Block a user