mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Merge branch 'master' of https://github.com/ZomgPonies/Paradise
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
if(size > M.maxsize)
|
||||
return 0
|
||||
return 1
|
||||
else if (M.emagged == 1)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
var/datum/effect/effect/system/spark_spread/spark_system = new
|
||||
var/lights = 0
|
||||
var/lights_power = 6
|
||||
var/emagged = 0
|
||||
|
||||
//inner atmos
|
||||
var/use_internal_tank = 0
|
||||
@@ -659,6 +660,16 @@
|
||||
|
||||
/obj/mecha/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
|
||||
if(istype(W, /obj/item/weapon/card/emag))
|
||||
if(istype(src, /obj/mecha/working/ripley) && emagged == 0)
|
||||
emagged = 1
|
||||
usr << "\blue You slide the [W] through the [src]'s ID slot."
|
||||
playsound(src.loc, "sparks", 100, 1)
|
||||
src.desc += "</br><b>\red The mech's equiptment slots spark dangerously!</b>"
|
||||
else
|
||||
usr <<"\red The [src]'s ID slot rejects the [W]."
|
||||
return
|
||||
|
||||
|
||||
if(istype(W, /obj/item/device/mmi) || istype(W, /obj/item/device/mmi/posibrain))
|
||||
if(mmi_move_inside(W,user))
|
||||
|
||||
Reference in New Issue
Block a user