diff --git a/code/game/gamemodes/clock_cult/clock_items/clockwork_armor.dm b/code/game/gamemodes/clock_cult/clock_items/clockwork_armor.dm index 13cb65f0816..705c719ddfe 100644 --- a/code/game/gamemodes/clock_cult/clock_items/clockwork_armor.dm +++ b/code/game/gamemodes/clock_cult/clock_items/clockwork_armor.dm @@ -116,7 +116,7 @@ item_state = "clockwork_gauntlets" item_color = null //So they don't wash. strip_delay = 50 - put_on_delay = 30 + equip_delay_other = 30 body_parts_covered = ARMS cold_protection = ARMS heat_protection = ARMS @@ -175,7 +175,7 @@ icon_state = "clockwork_treads" w_class = WEIGHT_CLASS_NORMAL strip_delay = 50 - put_on_delay = 30 + equip_delay_other = 30 resistance_flags = FIRE_PROOF | ACID_PROOF /obj/item/clothing/shoes/clockwork/Initialize() diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 30c4e549267..4ded6d26df6 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -59,8 +59,9 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE) var/armour_penetration = 0 //percentage of armour effectiveness to remove var/list/allowed = null //suit storage stuff. var/obj/item/device/uplink/hidden_uplink = null - var/strip_delay = 40 - var/put_on_delay = 20 + var/equip_delay_self = 0 //In deciseconds, how long an item takes to equip; counts only for normal clothing slots, not pockets etc. + var/equip_delay_other = 20 //In deciseconds, how long an item takes to put on another person + var/strip_delay = 40 //In deciseconds, how long an item takes to remove from another person var/breakouttime = 0 var/list/materials var/origin_tech = null //Used by R&D to determine what research bonuses it grants. @@ -421,11 +422,11 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE) //if this is being done by a mob other than M, it will include the mob equipper, who is trying to equip the item to mob M. equipper will be null otherwise. //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. -/obj/item/proc/mob_can_equip(mob/M, mob/equipper, slot, disable_warning = 0) +/obj/item/proc/mob_can_equip(mob/living/M, mob/living/equipper, slot, disable_warning = FALSE, bypass_equip_delay_self = FALSE) if(!M) return 0 - return M.can_equip(src, slot, disable_warning) + return M.can_equip(src, slot, disable_warning, bypass_equip_delay_self) /obj/item/verb/verb_pickup() set src in oview(1) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index a5b4b0ca313..b63b7bd6caa 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -197,7 +197,7 @@ icon_state = "earmuffs" item_state = "earmuffs" strip_delay = 15 - put_on_delay = 25 + equip_delay_other = 25 resistance_flags = FLAMMABLE /obj/item/clothing/ears/earmuffs/Initialize(mapload) @@ -221,7 +221,7 @@ var/list/icon/current = list() //the current hud icons var/vision_correction = 0 //does wearing these glasses correct some of our vision defects? strip_delay = 20 - put_on_delay = 25 + equip_delay_other = 25 resistance_flags = 0 /* SEE_SELF // can see self, no matter what @@ -246,7 +246,7 @@ BLIND // can't see anything attack_verb = list("challenged") var/transfer_prints = FALSE strip_delay = 20 - put_on_delay = 40 + equip_delay_other = 40 /obj/item/clothing/gloves/worn_overlays(isinhands = FALSE) @@ -316,7 +316,7 @@ BLIND // can't see anything body_parts_covered = NECK slot_flags = SLOT_NECK strip_delay = 40 - put_on_delay = 40 + equip_delay_other = 40 /obj/item/clothing/neck/worn_overlays(isinhands = FALSE) . = list() @@ -335,7 +335,7 @@ BLIND // can't see anything body_parts_covered = HEAD slot_flags = SLOT_MASK strip_delay = 40 - put_on_delay = 40 + equip_delay_other = 40 var/mask_adjusted = 0 var/adjusted_flags = null @@ -502,7 +502,7 @@ BLIND // can't see anything max_heat_protection_temperature = SPACE_HELM_MAX_TEMP_PROTECT flash_protect = 2 strip_delay = 50 - put_on_delay = 50 + equip_delay_other = 50 flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH resistance_flags = 0 @@ -525,7 +525,7 @@ BLIND // can't see anything heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS max_heat_protection_temperature = SPACE_SUIT_MAX_TEMP_PROTECT strip_delay = 80 - put_on_delay = 80 + equip_delay_other = 80 resistance_flags = 0 //Under clothing diff --git a/code/modules/clothing/gloves/boxing.dm b/code/modules/clothing/gloves/boxing.dm index 7c887ed7181..f1016b0cc12 100644 --- a/code/modules/clothing/gloves/boxing.dm +++ b/code/modules/clothing/gloves/boxing.dm @@ -3,7 +3,7 @@ desc = "Because you really needed another excuse to punch your crewmates." icon_state = "boxing" item_state = "boxing" - put_on_delay = 60 + equip_delay_other = 60 species_exception = list(/datum/species/golem) // now you too can be a golem boxing champion /obj/item/clothing/gloves/boxing/green diff --git a/code/modules/clothing/gloves/miscellaneous.dm b/code/modules/clothing/gloves/miscellaneous.dm index e3b688e9cb4..03cba84d4fd 100644 --- a/code/modules/clothing/gloves/miscellaneous.dm +++ b/code/modules/clothing/gloves/miscellaneous.dm @@ -7,7 +7,7 @@ item_color = null //So they don't wash. transfer_prints = TRUE strip_delay = 40 - put_on_delay = 20 + equip_delay_other = 20 cold_protection = HANDS min_cold_protection_temperature = GLOVES_MIN_TEMP_PROTECT @@ -48,7 +48,7 @@ item_color = null //So they don't wash. transfer_prints = TRUE strip_delay = 40 - put_on_delay = 20 + equip_delay_other = 20 body_parts_covered = ARMS cold_protection = ARMS min_cold_protection_temperature = GLOVES_MIN_TEMP_PROTECT diff --git a/code/modules/clothing/head/jobs.dm b/code/modules/clothing/head/jobs.dm index 6fc3a36ad6c..23b3da72ef3 100644 --- a/code/modules/clothing/head/jobs.dm +++ b/code/modules/clothing/head/jobs.dm @@ -6,7 +6,7 @@ icon_state = "chef" desc = "The commander in chef's head wear." strip_delay = 10 - put_on_delay = 10 + equip_delay_other = 10 dog_fashion = /datum/dog_fashion/head/chef /obj/item/clothing/head/chefhat/suicide_act(mob/user) diff --git a/code/modules/clothing/masks/breath.dm b/code/modules/clothing/masks/breath.dm index 0ab1f9fe8e0..6b39ece5e69 100644 --- a/code/modules/clothing/masks/breath.dm +++ b/code/modules/clothing/masks/breath.dm @@ -35,4 +35,4 @@ icon_state = "medical" item_state = "m_mask" permeability_coefficient = 0.01 - put_on_delay = 10 + equip_delay_other = 10 diff --git a/code/modules/clothing/masks/miscellaneous.dm b/code/modules/clothing/masks/miscellaneous.dm index 54a787fadde..c03f8c72909 100644 --- a/code/modules/clothing/masks/miscellaneous.dm +++ b/code/modules/clothing/masks/miscellaneous.dm @@ -6,7 +6,7 @@ flags_cover = MASKCOVERSMOUTH w_class = WEIGHT_CLASS_SMALL gas_transfer_coefficient = 0.90 - put_on_delay = 20 + equip_delay_other = 20 /obj/item/clothing/mask/muzzle/attack_paw(mob/user) if(iscarbon(user)) diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 694d6121f5a..ab0a9898bb4 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -7,7 +7,7 @@ var/slowdown_active = 2 actions_types = list(/datum/action/item_action/toggle) strip_delay = 70 - put_on_delay = 70 + equip_delay_other = 70 resistance_flags = FIRE_PROOF origin_tech = "materials=3;magnets=4;engineering=4" diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm index 6643920e01b..f1287195d2d 100644 --- a/code/modules/clothing/shoes/miscellaneous.dm +++ b/code/modules/clothing/shoes/miscellaneous.dm @@ -34,7 +34,7 @@ name = "sandals" icon_state = "wizard" strip_delay = 50 - put_on_delay = 50 + equip_delay_other = 50 /obj/item/clothing/shoes/sandal/marisa desc = "A pair of magic black shoes." @@ -55,7 +55,7 @@ flags = NOSLIP slowdown = SHOES_SLOWDOWN+1 strip_delay = 50 - put_on_delay = 50 + equip_delay_other = 50 resistance_flags = 0 armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 40, acid = 75) @@ -94,7 +94,7 @@ item_state = "jackboots" item_color = "hosred" strip_delay = 50 - put_on_delay = 50 + equip_delay_other = 50 resistance_flags = 0 pockets = /obj/item/weapon/storage/internal/pocket/shoes @@ -118,7 +118,7 @@ icon_state = "workboots" item_state = "jackboots" strip_delay = 40 - put_on_delay = 40 + equip_delay_other = 40 pockets = /obj/item/weapon/storage/internal/pocket/shoes /obj/item/clothing/shoes/workboots/mining @@ -154,7 +154,7 @@ name = "laceup shoes" desc = "The height of fashion, and they're pre-polished!" icon_state = "laceups" - put_on_delay = 50 + equip_delay_other = 50 /obj/item/clothing/shoes/roman name = "roman sandals" @@ -162,7 +162,7 @@ icon_state = "roman" item_state = "roman" strip_delay = 100 - put_on_delay = 100 + equip_delay_other = 100 /obj/item/clothing/shoes/griffin name = "griffon boots" @@ -212,10 +212,10 @@ name = "yellow performer's boots" desc = "These boots were made for dancing." icon_state = "ysing" - put_on_delay = 50 + equip_delay_other = 50 /obj/item/clothing/shoes/singerb name = "blue performer's boots" desc = "These boots were made for dancing." icon_state = "bsing" - put_on_delay = 50 + equip_delay_other = 50 diff --git a/code/modules/clothing/spacesuits/miscellaneous.dm b/code/modules/clothing/spacesuits/miscellaneous.dm index d233f76a79c..49c698e7d63 100644 --- a/code/modules/clothing/spacesuits/miscellaneous.dm +++ b/code/modules/clothing/spacesuits/miscellaneous.dm @@ -123,7 +123,7 @@ Contains: armor = list(melee = 30, bullet = 50, laser = 30,energy = 15, bomb = 30, bio = 30, rad = 30, fire = 60, acid = 75) flags = STOPSPRESSUREDMAGE strip_delay = 40 - put_on_delay = 20 + equip_delay_other = 20 flags_cover = HEADCOVERSEYES /obj/item/clothing/suit/space/pirate @@ -137,7 +137,7 @@ Contains: slowdown = 0 armor = list(melee = 30, bullet = 50, laser = 30,energy = 15, bomb = 30, bio = 30, rad = 30, fire = 60, acid = 75) strip_delay = 40 - put_on_delay = 20 + equip_delay_other = 20 //Emergency Response Team suits /obj/item/clothing/head/helmet/space/hardsuit/ert diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm index d34eac5a9f4..a93150892f1 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -6,7 +6,7 @@ heat_protection = CHEST|GROIN max_heat_protection_temperature = ARMOR_MAX_TEMP_PROTECT strip_delay = 60 - put_on_delay = 40 + equip_delay_other = 40 obj_integrity = 250 max_integrity = 250 resistance_flags = 0 @@ -106,7 +106,7 @@ heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS armor = list(melee = 50, bullet = 10, laser = 10, energy = 10, bomb = 0, bio = 0, rad = 0, fire = 80, acid = 80) strip_delay = 80 - put_on_delay = 60 + equip_delay_other = 60 /obj/item/clothing/suit/armor/bone name = "bone armor" @@ -125,7 +125,7 @@ blood_overlay_type = "armor" armor = list(melee = 15, bullet = 60, laser = 10, energy = 10, bomb = 40, bio = 0, rad = 0, fire = 50, acid = 50) strip_delay = 70 - put_on_delay = 50 + equip_delay_other = 50 /obj/item/clothing/suit/armor/laserproof name = "reflector vest" diff --git a/code/modules/clothing/suits/bio.dm b/code/modules/clothing/suits/bio.dm index abf7066f12a..50757bb364b 100644 --- a/code/modules/clothing/suits/bio.dm +++ b/code/modules/clothing/suits/bio.dm @@ -25,7 +25,7 @@ armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 100, rad = 20, fire = 30, acid = 100) flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT strip_delay = 70 - put_on_delay = 70 + equip_delay_other = 70 resistance_flags = ACID_PROOF //Standard biosuit, orange stripe @@ -85,4 +85,4 @@ icon_state = "plaguedoctor" item_state = "bio_suit" strip_delay = 40 - put_on_delay = 20 + equip_delay_other = 20 diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm index 4f875f96cd9..a7c6deadfb3 100644 --- a/code/modules/clothing/suits/miscellaneous.dm +++ b/code/modules/clothing/suits/miscellaneous.dm @@ -318,6 +318,7 @@ item_state = "straight_jacket" body_parts_covered = CHEST|GROIN|LEGS|ARMS|HANDS flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT + equip_delay_self = 50 strip_delay = 60 breakouttime = 3000 diff --git a/code/modules/clothing/suits/utility.dm b/code/modules/clothing/suits/utility.dm index 5e5a597b5b5..64f30acc531 100644 --- a/code/modules/clothing/suits/utility.dm +++ b/code/modules/clothing/suits/utility.dm @@ -27,7 +27,7 @@ cold_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS min_cold_protection_temperature = FIRE_SUIT_MIN_TEMP_PROTECT strip_delay = 60 - put_on_delay = 60 + equip_delay_other = 60 resistance_flags = FIRE_PROOF /obj/item/clothing/suit/fire/firefighter @@ -64,7 +64,7 @@ heat_protection = HEAD max_heat_protection_temperature = HELMET_MAX_TEMP_PROTECT strip_delay = 70 - put_on_delay = 70 + equip_delay_other = 70 flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH resistance_flags = 0 @@ -87,7 +87,7 @@ cold_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS min_cold_protection_temperature = ARMOR_MIN_TEMP_PROTECT strip_delay = 70 - put_on_delay = 70 + equip_delay_other = 70 resistance_flags = 0 @@ -112,7 +112,7 @@ flags_inv = HIDEMASK|HIDEEARS|HIDEFACE|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 60, rad = 100, fire = 30, acid = 30) strip_delay = 60 - put_on_delay = 60 + equip_delay_other = 60 flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH resistance_flags = 0 @@ -130,6 +130,6 @@ slowdown = 1.5 armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 60, rad = 100, fire = 30, acid = 30) strip_delay = 60 - put_on_delay = 60 + equip_delay_other = 60 flags_inv = HIDEJUMPSUIT resistance_flags = 0 diff --git a/code/modules/clothing/suits/wiz_robe.dm b/code/modules/clothing/suits/wiz_robe.dm index 677a5c7cfa2..5e179b4682c 100644 --- a/code/modules/clothing/suits/wiz_robe.dm +++ b/code/modules/clothing/suits/wiz_robe.dm @@ -6,7 +6,7 @@ permeability_coefficient = 0.01 armor = list(melee = 30, bullet = 20, laser = 20, energy = 20, bomb = 20, bio = 20, rad = 20, fire = 100, acid = 100) strip_delay = 50 - put_on_delay = 50 + equip_delay_other = 50 resistance_flags = FIRE_PROOF | ACID_PROOF dog_fashion = /datum/dog_fashion/head/blue_wizard @@ -70,7 +70,7 @@ allowed = list(/obj/item/weapon/teleportation_scroll) flags_inv = HIDEJUMPSUIT strip_delay = 50 - put_on_delay = 50 + equip_delay_other = 50 resistance_flags = FIRE_PROOF | ACID_PROOF /obj/item/clothing/suit/wizrobe/red diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index 27e5a776d89..bdc968e2d37 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -362,6 +362,9 @@ if(M.equip_to_appropriate_slot(src)) M.update_inv_hands() return TRUE + else + if(equip_delay_self) + return if(M.s_active && M.s_active.can_be_inserted(src,1)) //if storage active insert there M.s_active.handle_item_insertion(src) diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index 1b5518008e5..eeb046a3e75 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -1,5 +1,5 @@ -/mob/living/carbon/human/can_equip(obj/item/I, slot, disable_warning = 0) - return dna.species.can_equip(I, slot, disable_warning, src) +/mob/living/carbon/human/can_equip(obj/item/I, slot, disable_warning = FALSE, bypass_equip_delay_self = FALSE) + return dna.species.can_equip(I, slot, disable_warning, src, bypass_equip_delay_self) // Return the item currently in the slot ID /mob/living/carbon/human/get_item_by_slot(slot_id) diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index 1a5182a5636..814d3d34d75 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -603,7 +603,7 @@ // handles the equipping of species-specific gear return -/datum/species/proc/can_equip(obj/item/I, slot, disable_warning, mob/living/carbon/human/H) +/datum/species/proc/can_equip(obj/item/I, slot, disable_warning, mob/living/carbon/human/H, bypass_equip_delay_self = FALSE) if(slot in no_equip) if(!I.species_exception || !is_type_in_list(src, I.species_exception)) return 0 @@ -623,7 +623,7 @@ return 0 if(!H.get_bodypart("head")) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_neck) if(H.wear_neck) return 0 @@ -635,13 +635,13 @@ return 0 if( !(I.slot_flags & SLOT_BACK) ) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_wear_suit) if(H.wear_suit) return 0 if( !(I.slot_flags & SLOT_OCLOTHING) ) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_gloves) if(H.gloves) return 0 @@ -649,7 +649,7 @@ return 0 if(num_arms < 2) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_shoes) if(H.shoes) return 0 @@ -661,7 +661,7 @@ if(!disable_warning) to_chat(H, "The footwear around here isn't compatible with your feet!") return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_belt) if(H.belt) return 0 @@ -671,7 +671,7 @@ return 0 if( !(I.slot_flags & SLOT_BELT) ) return - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_glasses) if(H.glasses) return 0 @@ -679,7 +679,7 @@ return 0 if(!H.get_bodypart("head")) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_head) if(H.head) return 0 @@ -687,7 +687,7 @@ return 0 if(!H.get_bodypart("head")) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_ears) if(H.ears) return 0 @@ -695,13 +695,13 @@ return 0 if(!H.get_bodypart("head")) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_w_uniform) if(H.w_uniform) return 0 if( !(I.slot_flags & SLOT_ICLOTHING) ) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_wear_id) if(H.wear_id) return 0 @@ -711,7 +711,7 @@ return 0 if( !(I.slot_flags & SLOT_ID) ) return 0 - return 1 + return equip_delay_self_check(I, H, bypass_equip_delay_self) if(slot_l_store) if(I.flags & NODROP) //Pockets aren't visible, so you can't move NODROP items into them. return 0 @@ -783,6 +783,12 @@ return 0 return 0 //Unsupported slot +/datum/species/proc/equip_delay_self_check(obj/item/I, mob/living/carbon/human/H, bypass_equip_delay_self) + if(!I.equip_delay_self || bypass_equip_delay_self) + return TRUE + H.visible_message("[H] start putting on [I]...", "You start putting on [I]...") + return do_after(H, I.equip_delay_self, target = H) + /datum/species/proc/before_equip_job(datum/job/J, mob/living/carbon/human/H) return diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 431034c0b29..0ca6e2e16ca 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -666,7 +666,7 @@ return visible_message("[src] tries to put [what] on [who].") - if(do_mob(src, who, what.put_on_delay)) + if(do_mob(src, who, what.equip_delay_other)) if(what && Adjacent(who) && what.mob_can_equip(who, src, final_where, TRUE)) if(temporarilyRemoveItemFromInventory(what)) if(where_list) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 89b8a18e6a5..d8311277a03 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -198,9 +198,9 @@ //set qdel_on_fail to have it delete W if it fails to equip //set disable_warning to disable the 'you are unable to equip that' warning. //unset redraw_mob to prevent the mob from being redrawn at the end. -/mob/proc/equip_to_slot_if_possible(obj/item/W, slot, qdel_on_fail = 0, disable_warning = 0, redraw_mob = 1) +/mob/proc/equip_to_slot_if_possible(obj/item/W, slot, qdel_on_fail = FALSE, disable_warning = FALSE, redraw_mob = TRUE, bypass_equip_delay_self = FALSE) if(!istype(W)) return 0 - if(!W.mob_can_equip(src, null, slot, disable_warning)) + if(!W.mob_can_equip(src, null, slot, disable_warning, bypass_equip_delay_self)) if(qdel_on_fail) qdel(W) else @@ -216,8 +216,9 @@ return //This is just a commonly used configuration for the equip_to_slot_if_possible() proc, used to equip people when the rounds tarts and when events happen and such. +//Also bypasses equip delay checks, since the mob isn't actually putting it on. /mob/proc/equip_to_slot_or_del(obj/item/W, slot) - return equip_to_slot_if_possible(W, slot, 1, 1, 0) + return equip_to_slot_if_possible(W, slot, 1, 1, 0, 1) //puts the item "W" into an appropriate slot in a human's inventory //returns 0 if it cannot, 1 if successful