diff --git a/code/modules/vending/_vending.dm b/code/modules/vending/_vending.dm index 65451dfb..b256d861 100644 --- a/code/modules/vending/_vending.dm +++ b/code/modules/vending/_vending.dm @@ -258,6 +258,7 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C wires.interact(user) return + else if(istype(I, /obj/item/stack/credits)) var/obj/item/stack/credits/cred = I to_chat(usr, "You insert [cred] into [src].") @@ -265,13 +266,38 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C src.ui_interact(usr) del(cred) + /* we dont use this currency anymore! else if(istype(I, /obj/item/coin)) - to_chat(user, "[src] doesn't seem to accept this kind of currency anymore.") + if(coin) + to_chat(user, "[src] already has [coin] inserted") + return + if(bill) + to_chat(user, "[src] already has [bill] inserted") + return + if(!premium.len) + to_chat(user, "[src] doesn't have a coin slot.") + return + if(!user.transferItemToLoc(I, src)) + return + coin = I + to_chat(user, "You insert [I] into [src].") return else if(istype(I, /obj/item/stack/spacecash)) - to_chat(user, "[src] doesn't seem to accept this kind of currency anymore.") + if(coin) + to_chat(user, "[src] already has [coin] inserted") + return + if(bill) + to_chat(user, "[src] already has [bill] inserted") + return + var/obj/item/stack/S = I + if(!premium.len) + to_chat(user, "[src] doesn't have a bill slot.") + return + S.use(1) + bill = new S.type(src, 1) + to_chat(user, "You insert [I] into [src].") return - + */ else if(refill_canister && istype(I, refill_canister)) if (!panel_open) to_chat(user, "You should probably unscrew the service panel first.") @@ -292,7 +318,7 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C return else . = ..() - if(tiltable && !tilted && I.force && user.a_intent != INTENT_HELP) //Now we roll the dice. Thrown items do not trigger this, btw. + if(tiltable && !tilted && I.force) switch(rand(1, 100)) if(1 to 5) freebie(user, 3) @@ -374,14 +400,14 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C // the new paraplegic gets like 4 lines of losing their legs so skip them visible_message("[C]'s spinal cord is obliterated with a sickening crunch!", ignored_mobs = list(C)) C.gain_trauma(/datum/brain_trauma/severe/paralysis/paraplegic) - if(5) // dismember head + if(5) // skull squish! var/obj/item/bodypart/head/O = C.get_bodypart(BODY_ZONE_HEAD) if(O) C.visible_message("[O] explodes in a shower of gore beneath [src]!", \ "Oh f-") O.dismember() - /*O.drop_organs() - qdel(O) Deleting people's heads makes them angy*/ + O.drop_organs() + qdel(O) new /obj/effect/gibspawner/human/bodypartless(get_turf(C)) C.apply_damage(max(0, squish_damage - crit_rebate), BRUTE) C.AddElement(/datum/element/squish, 60 SECONDS)