mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
fixar
compiles now!
This commit is contained in:
@@ -238,7 +238,7 @@
|
||||
///called when an item is stripped off by another person, called AFTER it is on the ground
|
||||
/obj/item/proc/stripped(mob/wearer as mob, mob/stripper as mob)
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/proc/stripped() called tick#: [world.time]")
|
||||
return
|
||||
return unequipped(wearer)
|
||||
|
||||
// called just as an item is picked up (loc is not yet changed)
|
||||
/obj/item/proc/pickup(mob/user)
|
||||
@@ -269,6 +269,10 @@
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/proc/equipped() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
// called after an item is unequipped or stripped
|
||||
/obj/item/proc/unequipped(mob/user)
|
||||
return
|
||||
|
||||
//the mob M is attempting to equip this item into the slot passed through as 'slot'. Return 1 if it can do this and 0 if it can't.
|
||||
//If you are making custom procs but would like to retain partial or complete functionality of this one, include a 'return ..()' to where you want this to happen.
|
||||
//Set disable_warning to 1 if you wish it to not give you outputs.
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
max_combined_w_class = 0 //Can't put anything in once equipped!
|
||||
|
||||
/obj/item/weapon/storage/bag/plasticbag/u_equip()
|
||||
/obj/item/weapon/storage/bag/plasticbag/unequipped()
|
||||
.=..()
|
||||
|
||||
max_combined_w_class = initial(max_combined_w_class) //Can put stuff in once unequipped
|
||||
|
||||
@@ -333,6 +333,7 @@
|
||||
if (client)
|
||||
client.screen -= W
|
||||
W.loc = loc
|
||||
W.unequipped()
|
||||
if(dropped) W.dropped(src)
|
||||
if(W)
|
||||
W.layer = initial(W.layer)
|
||||
|
||||
@@ -145,6 +145,7 @@ var/global/secure_GPS_count = 0
|
||||
|
||||
/obj/item/device/gps/secure/stripped(mob/wearer as mob)
|
||||
if(emped) return
|
||||
.=..()
|
||||
|
||||
for(var/E in SPS_list)
|
||||
var/obj/item/device/gps/secure/S = E
|
||||
|
||||
Reference in New Issue
Block a user