mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-31 01:00:59 +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
@@ -61,6 +61,7 @@
|
||||
list(mode_name="induce mutations", projectile_type=/obj/item/projectile/energy/floramut, modifystate="floramut"),
|
||||
list(mode_name="increase yield", projectile_type=/obj/item/projectile/energy/florayield, modifystate="florayield"),
|
||||
list(mode_name="induce specific mutations", projectile_type=/obj/item/projectile/energy/floramut/gene, modifystate="floramut"),
|
||||
list(mode_name="prune reagents", projectile_type=/obj/item/projectile/energy/floraprune, modifystate="floramut"),
|
||||
)
|
||||
|
||||
/obj/item/gun/energy/floragun/Initialize()
|
||||
@@ -126,6 +127,7 @@
|
||||
var/obj/item/projectile/energy/floramut/gene/G = .
|
||||
var/obj/item/projectile/energy/florayield/GY = .
|
||||
var/obj/item/projectile/energy/floramut/GM = .
|
||||
var/obj/item/projectile/energy/floraprune/GP = .
|
||||
// Inserting the upgrade level of the gun to the projectile as there isn't a better way to do this.
|
||||
if(istype(G))
|
||||
G.gene = gene
|
||||
@@ -134,6 +136,8 @@
|
||||
GY.lasermod = emitter.rating
|
||||
else if(istype(GM))
|
||||
GM.lasermod = emitter.rating
|
||||
else if(istype(GP))
|
||||
GP.lasermod = emitter.rating
|
||||
|
||||
/obj/item/gun/energy/meteorgun
|
||||
name = "meteor gun"
|
||||
|
||||
Reference in New Issue
Block a user