Adds in Rings

This commit is contained in:
Fox-McCloud
2015-04-29 19:05:43 -04:00
parent 8c57e4ed0b
commit 1b0ea1e226
6 changed files with 116 additions and 0 deletions
+13
View File
@@ -101,6 +101,19 @@
overlays = list()
string_attached = null
user << "<span class='notice'>You detach the string from the coin.</span>"
else if(istype(W,/obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = W
if(WT.welding && WT.remove_fuel(0, user))
var/typelist = list("iron" = /obj/item/clothing/gloves/ring,
"silver" = /obj/item/clothing/gloves/ring/silver,
"gold" = /obj/item/clothing/gloves/ring/gold,
"plasma" = /obj/item/clothing/gloves/ring/plasma,
"uranium" = /obj/item/clothing/gloves/ring/uranium)
var/typekey = typelist[cmineral]
if(ispath(typekey))
user << "\blue You make [src] into a ring."
new typekey(get_turf(loc))
qdel(src)
else ..()
/obj/item/weapon/coin/attack_self(mob/user as mob)