compiles now!
This commit is contained in:
unid15
2015-09-20 15:58:01 +02:00
parent 9a6584e7e3
commit 90e6ad06b7
4 changed files with 8 additions and 2 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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)

View File

@@ -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