mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Fixes emag modules stacking (#6780)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -249,11 +249,13 @@ var/obj/screen/robot_inventory
|
||||
//be emagged before they actually select a module. - or some situation can cause them to get a new module
|
||||
// - or some situation might cause them to get de-emagged or something.
|
||||
if(r.emagged || r.emag_items)
|
||||
if(!(r.module.emag in r.module.modules))
|
||||
r.module.modules.Add(r.module.emag)
|
||||
for(var/obj/O in r.module.emag)
|
||||
if(!(O in r.module.modules))
|
||||
r.module.modules.Add(r.module.emag)
|
||||
else
|
||||
if(r.module.emag in r.module.modules)
|
||||
r.module.modules.Remove(r.module.emag)
|
||||
for(var/obj/O in r.module.emag)
|
||||
if(O in r.module.modules)
|
||||
r.module.modules.Remove(r.module.emag)
|
||||
|
||||
for(var/atom/movable/A in r.module.modules)
|
||||
if( (A != r.module_state_1) && (A != r.module_state_2) && (A != r.module_state_3) )
|
||||
|
||||
Reference in New Issue
Block a user