mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 16:48:12 +01:00
[MIRROR] Add Somatoray Mode to Remove Reagents (#10210)
Co-authored-by: NickBelmont <89628295+NickBelmont@users.noreply.github.com>
This commit is contained in:
co-authored by
NickBelmont
parent
8848b31f37
commit
704dab9d46
@@ -245,6 +245,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