Add Somatoray Mode to Remove Reagents (#17196)

* Adds somatoray mode to remove reagents from plants

* Typo

* Fixes small issue with floraprune projectile
This commit is contained in:
NickBelmont
2025-02-21 10:34:37 -05:00
committed by GitHub
parent 4e5a32721f
commit 205c22f8c1
3 changed files with 41 additions and 0 deletions
+11
View File
@@ -236,6 +236,17 @@
if(prob(mutchance))
yield_mod = min(10,yield_mod+rand(1,2))
return
else if(istype(Proj, /obj/item/projectile/energy/floraprune))
var/obj/item/projectile/energy/floraprune/GP = Proj
mutchance *= GP.lasermod
if(prob(mutchance) && seed)
var/c = safepick(seed.chems)
if(length(seed.chems) > 1 && c)
var/turf/T = get_turf(loc)
seed = seed.diverge()
T.visible_message(span_infoplain(span_bold("\The [seed.display_name]") + " quivers!"))
seed.chems -= c
return
..()