mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
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:
@@ -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
|
||||
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user