Claw Game progress 2

Claw game is now playable from within SS13

- still need to code and test win-functionality
- still need to code prize ball and circuit board
This commit is contained in:
FalseIncarnate
2015-12-07 23:28:02 -05:00
parent bc5faea093
commit 4afec741fd
24 changed files with 303 additions and 308 deletions
+14
View File
@@ -20,6 +20,20 @@
new choice(loc)
qdel(src)
/obj/machinery/arcade/examine(mob/user)
..(user)
if(freeplay)
user << "Someone enabled freeplay on this machine!"
else
if(token_price)
user << "\The [src.name] costs [token_price] credits per play."
if(!tokens)
user << "\The [src.name] has no available play credits. Better feed the machine!"
else if(tokens == 1)
user << "\The [src.name] has only 1 play credit left!"
else
user << "\The [src.name] has [tokens] play credits!"
/obj/machinery/arcade/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
if(istype(O, /obj/item/weapon/screwdriver) && anchored)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)