mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Fix vending machine coin issue/runtime
This commit is contained in:
@@ -464,11 +464,9 @@
|
||||
usr << "There is no coin in this machine."
|
||||
return
|
||||
|
||||
coin.loc = src.loc
|
||||
if(!usr.get_active_hand())
|
||||
usr.put_in_hands(coin)
|
||||
usr << "\blue You remove the [coin] from the [src]"
|
||||
usr.put_in_hands(coin)
|
||||
coin = null
|
||||
usr << "\blue You remove the [coin] from the [src]"
|
||||
categories &= ~CAT_COIN
|
||||
|
||||
if (href_list["pay"])
|
||||
@@ -560,9 +558,11 @@
|
||||
user << "\blue You successfully pull the coin out before the [src] could swallow it."
|
||||
else
|
||||
user << "\blue You weren't able to pull the coin out fast enough, the machine ate it, string and all."
|
||||
coin = null
|
||||
qdel(coin)
|
||||
categories &= ~CAT_COIN
|
||||
else
|
||||
coin = null
|
||||
qdel(coin)
|
||||
categories &= ~CAT_COIN
|
||||
|
||||
|
||||
@@ -431,7 +431,9 @@
|
||||
var/armor_block = run_armor_check(affecting, "melee")
|
||||
apply_damage(damage, BRUTE, affecting, armor_block)
|
||||
|
||||
/mob/living/carbon/human/proc/is_loyalty_implanted(mob/living/carbon/human/M)
|
||||
/mob/living/carbon/human/proc/is_loyalty_implanted(mob/living/carbon/human/M)
|
||||
if(!istype(M))
|
||||
return 0
|
||||
for(var/L in M.contents)
|
||||
if(istype(L, /obj/item/weapon/implant/loyalty))
|
||||
for(var/obj/item/organ/external/O in M.organs)
|
||||
|
||||
Reference in New Issue
Block a user