mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
Fix fire exploit being extinguished by pAIs, borgs, and simple animals (#60852)
* Fix fire being extinguished by pAIs, borgs, and simple animals * Add trait TRAIT_NOFIRE_SPREAD * Add NOFIRE_SPREAD traits to simple and silicon mob types * Refactor spreadFire proc to use check TRAIT_NOFIRE_SPREAD
This commit is contained in:
@@ -1442,6 +1442,10 @@
|
||||
if(!istype(L))
|
||||
return
|
||||
|
||||
// can't spread fire to mobs that don't catch on fire
|
||||
if(HAS_TRAIT(L, TRAIT_NOFIRE_SPREAD) || HAS_TRAIT(src, TRAIT_NOFIRE_SPREAD))
|
||||
return
|
||||
|
||||
if(on_fire)
|
||||
if(L.on_fire) // If they were also on fire
|
||||
var/firesplit = (fire_stacks + L.fire_stacks)/2
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
add_sensors()
|
||||
ADD_TRAIT(src, TRAIT_ADVANCEDTOOLUSER, ROUNDSTART_TRAIT)
|
||||
ADD_TRAIT(src, TRAIT_MARTIAL_ARTS_IMMUNE, ROUNDSTART_TRAIT)
|
||||
ADD_TRAIT(src, TRAIT_NOFIRE_SPREAD, SPECIES_TRAIT)
|
||||
|
||||
/mob/living/silicon/Destroy()
|
||||
QDEL_NULL(radio)
|
||||
|
||||
@@ -178,6 +178,7 @@
|
||||
AddComponent(/datum/component/personal_crafting)
|
||||
ADD_TRAIT(src, TRAIT_ADVANCEDTOOLUSER, ROUNDSTART_TRAIT)
|
||||
ADD_TRAIT(src, TRAIT_CAN_STRIP, ROUNDSTART_TRAIT)
|
||||
ADD_TRAIT(src, TRAIT_NOFIRE_SPREAD, SPECIES_TRAIT)
|
||||
|
||||
if(speak)
|
||||
speak = string_list(speak)
|
||||
|
||||
Reference in New Issue
Block a user