mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 04:41:27 +01:00
d5849910e5
* Begin clickcode attack_self fix Begins the work to make everything call back to parent for attack_self so that signals are sacred. * Makes MORE things call the attack_self() parent Yes, I could make special_handling a var on obj/item HOWEVER i want it to be specific so it can be tracked down later and ONLY the objects that use it can be refactored instead of sitting there literally forever and it just becoming 'a thing'. * Finishes making the rest of attack_self call parent. As mentioned, things such as 'specialty_goggles' 'special_handling' and the such are only there to help with attack_self until the attack_self is recoded for those items. * begone foul demon * some more cleanup * These * GOD this was annoying * yeh * Fix this * fLARES * Thesee too * toys! * Even more! * More fixes * Even more * rest of em * these too * Update syndie.dm * hardref clear * Update code/game/gamemodes/nuclear/pinpointer.dm * Update code/game/objects/effects/mines.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/contraband_vr.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/weapons/gift_wrappaper.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * these too * Update maintpanel_stack.dm * angry warning * Fixes packaged snacks. Fixes improper var default. * Special handling for these * proper poly types * Fixes magclaws Makes the 'features' it had just part of base magboots that can be adjusted via varswap. * Fixes jackets Fixes https://github.com/VOREStation/VOREStation/issues/18941 * Small bugfix Makes p_Theyre properly capitialize Makes examine show proper wording * Update gift_wrappaper.dm
62 lines
2.5 KiB
Plaintext
62 lines
2.5 KiB
Plaintext
//Weird coins that I would prefer didn't work with normal vending machines. Might use them to make weird vending machines later.
|
|
|
|
/obj/item/aliencoin
|
|
icon = 'icons/obj/aliencoins.dmi'
|
|
name = "curious coin"
|
|
desc = "A curious triangular coin made primarily of some kind of dark, smooth metal. "
|
|
icon_state = "triangle"
|
|
randpixel = 8
|
|
force = 0.5
|
|
throwforce = 0.5
|
|
w_class = ITEMSIZE_TINY
|
|
slot_flags = SLOT_EARS
|
|
var/sides = 2
|
|
var/value = 1
|
|
drop_sound = 'sound/items/drop/ring.ogg'
|
|
pickup_sound = 'sound/items/pickup/ring.ogg'
|
|
|
|
/obj/item/aliencoin/Initialize(mapload)
|
|
. = ..()
|
|
randpixel_xy()
|
|
|
|
/obj/item/aliencoin/basic
|
|
|
|
/obj/item/aliencoin/gold
|
|
name = "curious coin"
|
|
icon_state = "triangle-g"
|
|
desc = "A curious triangular coin made primarily of some kind of dark, smooth metal. This one's markings appear to reveal a golden material underneath."
|
|
value = 10
|
|
|
|
/obj/item/aliencoin/silver
|
|
name = "curious coin"
|
|
icon_state = "triangle-s"
|
|
desc = "A curious triangular coin made primarily of some kind of dark, smooth metal. This one's markings appear to reveal a silver material underneath."
|
|
value = 5
|
|
|
|
/obj/item/aliencoin/phoron
|
|
name = "curious coin"
|
|
icon_state = "triangle-p"
|
|
desc = "A curious triangular coin made primarily of some kind of dark, smooth metal. This one's markings appear to reveal a purple material underneath."
|
|
value = 20
|
|
|
|
|
|
/obj/item/aliencoin/attack_self(mob/user)
|
|
. = ..(user)
|
|
if(.)
|
|
return TRUE
|
|
var/result = rand(1, sides)
|
|
var/comment = ""
|
|
if(result == 1)
|
|
comment = "tails"
|
|
else if(result == 2)
|
|
comment = "heads"
|
|
user.visible_message(span_notice("[user] has thrown [src]. It lands on [comment]! "), runemessage = "[src] landed on [comment]")
|
|
if(rand(1,20) == 1)
|
|
user.visible_message(span_notice("[user] fumbled the [src]!"), runemessage = "fumbles [src]")
|
|
user.remove_from_mob(src)
|
|
|
|
/obj/item/aliencoin/examine(var/mob/user)
|
|
. = ..()
|
|
if(Adjacent(user))
|
|
. += span_notice("It has some writing along its edge that seems to be some language that you are not familiar with. The face of the coin is very smooth, with what appears to be some kind of angular logo along the left side, and a couple of lines of the alien text along the opposite side. The reverse side is similarly smooth, the top of it features what appears to be some kind of vortex, surrounded by six stars, three on either side, with further swirls and intricate patterns along the bottom sections of this face. Looking closely, you can see that there is more text hidden among the swirls.")
|