mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Adds the Mining Equipment Vendor machine, which sells lots of items for points earned by mining. Enhanced the ore processor to give points for processed ore. Added some miscellaneous items such as hyposprays for miners. Switched mining machines to use the nice new icons.
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
/**********************Mining Equipment Locker Items**************************/
|
|
|
|
/**********************Mining Equipment Voucher**********************/
|
|
|
|
/obj/item/mining_voucher
|
|
name = "mining voucher"
|
|
desc = "A token to redeem a piece of equipment. Use it on a mining equipment vendor."
|
|
icon = 'icons/obj/mining_vr.dmi'
|
|
icon_state = "mining_voucher"
|
|
w_class = ITEMSIZE_TINY
|
|
|
|
/**********************Mining Point Card**********************/
|
|
|
|
/obj/item/weapon/card/mining_point_card
|
|
name = "mining point card"
|
|
desc = "A small card preloaded with mining points. Swipe your ID card over it to transfer the points, then discard."
|
|
icon_state = "data"
|
|
var/points = 500
|
|
|
|
/obj/item/weapon/card/mining_point_card/attackby(obj/item/I, mob/user, params)
|
|
if(istype(I, /obj/item/weapon/card/id))
|
|
if(points)
|
|
var/obj/item/weapon/card/id/C = I
|
|
C.mining_points += points
|
|
to_chat(user, "<span class='info'>You transfer [points] points to [C].</span>")
|
|
points = 0
|
|
else
|
|
to_chat(user, "<span class='info'>There's no points left on [src].</span>")
|
|
..()
|
|
|
|
/obj/item/weapon/card/mining_point_card/examine(mob/user)
|
|
..(user)
|
|
to_chat(user, "There's [points] points on the card.")
|