Merge pull request #14290 from VOREStation/upstream-merge-8851

[MIRROR] Maintenance on Hydro code, specifically vines and bees.
This commit is contained in:
Heroman3003
2023-01-04 12:55:59 +10:00
committed by CHOMPStation2
parent 541cfe409b
commit e9c2487299
7 changed files with 110 additions and 73 deletions

View File

@@ -319,6 +319,16 @@
vacuum_traversal = 0
hud_state = "flame"
/obj/item/projectile/bullet/incendiary/flamethrower/after_move()
..()
var/turf/T = get_turf(src)
if(istype(T))
for(var/obj/effect/plant/Victim in T)
if(prob(max(20, 100 - (Victim.seed.get_trait(TRAIT_ENDURANCE))))) // Chance to immediately kill a vine or rampant growth, minimum of 20%.
Victim.die_off()
/obj/item/projectile/bullet/incendiary/flamethrower/large
damage = 5
incendiary = 3