From 1b0ea1e22683526c444d4f7235672bf9148293f0 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Wed, 29 Apr 2015 19:05:43 -0400 Subject: [PATCH] Adds in Rings --- .../crates_lockers/closets/wardrobe.dm | 4 + code/modules/clothing/gloves/boxing.dm | 1 + code/modules/clothing/gloves/rings.dm | 97 ++++++++++++++++++ code/modules/mining/coins.dm | 13 +++ icons/obj/clothing/rings.dmi | Bin 0 -> 3041 bytes paradise.dme | 1 + 6 files changed, 116 insertions(+) create mode 100644 code/modules/clothing/gloves/rings.dm create mode 100644 icons/obj/clothing/rings.dmi diff --git a/code/game/objects/structures/crates_lockers/closets/wardrobe.dm b/code/game/objects/structures/crates_lockers/closets/wardrobe.dm index fcead78a565..48dd73532bf 100644 --- a/code/game/objects/structures/crates_lockers/closets/wardrobe.dm +++ b/code/game/objects/structures/crates_lockers/closets/wardrobe.dm @@ -105,6 +105,10 @@ new /obj/item/weapon/storage/backpack/cultpack (src) new /obj/item/weapon/storage/fancy/candle_box(src) new /obj/item/weapon/storage/fancy/candle_box(src) + new /obj/item/clothing/gloves/ring/silver(src) + new /obj/item/clothing/gloves/ring/silver(src) + new /obj/item/clothing/gloves/ring/gold(src) + new /obj/item/clothing/gloves/ring/gold(src) return diff --git a/code/modules/clothing/gloves/boxing.dm b/code/modules/clothing/gloves/boxing.dm index f9638c18bce..ee3e0849d80 100644 --- a/code/modules/clothing/gloves/boxing.dm +++ b/code/modules/clothing/gloves/boxing.dm @@ -3,6 +3,7 @@ desc = "Because you really needed another excuse to punch your crewmates." icon_state = "boxing" item_state = "boxing" + species_restricted = null species_fit = list("Vox") sprite_sheets = list( "Vox" = 'icons/mob/species/vox/gloves.dmi' diff --git a/code/modules/clothing/gloves/rings.dm b/code/modules/clothing/gloves/rings.dm new file mode 100644 index 00000000000..90b012d0580 --- /dev/null +++ b/code/modules/clothing/gloves/rings.dm @@ -0,0 +1,97 @@ +/obj/item/clothing/gloves/ring + name = "iron ring" + desc = "A band that goes around your finger. It's considered gauche to wear more than one." + gender = "neuter" // not plural anymore + transfer_prints = TRUE + icon_state = "ironring" + item_state = "" + icon = 'icons/obj/clothing/rings.dmi' + var/material = "iron" + var/stud = 0 + species_restricted = null + + New() + ..() + update_icon() + + update_icon() + if(stud) + icon_state = "d_[initial(icon_state)]" + else + icon_state = initial(icon_state) + examine() + ..() + usr << "This one is made of [material]." + if(stud) + usr << "It is adorned with a single gem." + +/obj/item/clothing/gloves/ring/attackby(obj/item/I as obj, mob/user as mob, params) + if(istype(I, /obj/item/stack/sheet/mineral/diamond)) + var/obj/item/stack/sheet/mineral/diamond/D = I + if(stud) + usr << "The [src] already has a gem." + else + if(D.amount >= 1) + D.use(1) + stud = 1 + update_icon() + usr << "You socket the diamond into the [src]." + +// s'pensive +/obj/item/clothing/gloves/ring/silver + name = "silver ring" + icon_state = "silverring" + material = "silver" + +/obj/item/clothing/gloves/ring/silver/blessed // todo + name = "blessed silver ring" + +/obj/item/clothing/gloves/ring/gold + name = "gold ring" + icon_state = "goldring" + material = "gold" + +/obj/item/clothing/gloves/ring/gold/blessed + name = "wedding band" + +// cheap +/obj/item/clothing/gloves/ring/plastic + name = "white plastic ring" + icon_state = "whitering" + material = "plastic" + +/obj/item/clothing/gloves/ring/plastic/blue + name = "blue plastic ring" + icon_state = "bluering" + +/obj/item/clothing/gloves/ring/plastic/red + name = "red plastic ring" + icon_state = "redring" + +/obj/item/clothing/gloves/ring/plastic/random + New() + var/c = pick("white","blue","red") + name = "[c] plastic ring" + icon_state = "[c]ring" + +// weird +/obj/item/clothing/gloves/ring/glass + name = "glass ring" + icon_state = "whitering" + material = "glass" + +/obj/item/clothing/gloves/ring/plasma + name = "plasma ring" + icon_state = "plasmaring" + material = "plasma" + +/obj/item/clothing/gloves/ring/uranium + name = "uranium ring" + icon_state = "uraniumring" + material = "uranium" + +// cultish +/obj/item/clothing/gloves/ring/shadow + name = "shadow ring" + icon_state = "shadowring" + material = "shadows" diff --git a/code/modules/mining/coins.dm b/code/modules/mining/coins.dm index cc1e966ff46..16c4f90fde1 100644 --- a/code/modules/mining/coins.dm +++ b/code/modules/mining/coins.dm @@ -101,6 +101,19 @@ overlays = list() string_attached = null user << "You detach the string from the coin." + 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) diff --git a/icons/obj/clothing/rings.dmi b/icons/obj/clothing/rings.dmi new file mode 100644 index 0000000000000000000000000000000000000000..d378c34e04e0aafa146a7131820cb3df7015a137 GIT binary patch literal 3041 zcmai$X*iT!AHZ+>5=NR4@|ZkNs5EwkFxHHSX{=e26xsJJ%utq4A&N3JvSn>VmTaTE zj3q>Nra~p_pvGXfcl6=CuJ=pNhyOYEb)9qm*L}|Uo!>dBNGmg8K`B810EEpECMb4Y zz>au+UUqrc{JnopPSN8LTryrESD7L z2=zkJ(#IUXOqxbKSc&8ht8O*l*aR8DX4f;&i2*+-Y1k8{DnWYE_0v5N5U-L~weHB* z{`Rj|58O)dJpWd;t9-ccpqEO}$nro$cO27@3jS#6ZYplCxbg1vh}wZp&Amf@&#F~i z5>joz_FWn=D ziP{J3mA2HiWJK!XA{*6Ly)ZP|UOr7PhISmQ70fAQY|2UDQK>s3a@1ImFH<&&t0(gv z$2G(ppjI3NNTRgjg-*yXA3%2cmRI&QaI9=Y8qoaUdDxXsW#?c&YISx>IevhD-kWYz zr7uu!;VK6a=S;f6gS_LcU@bU0aqZZq8hT9eN>D+epurjyN^0PN(hc)1_E=Hv>UC02 z%huj3oI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As~fJI2;e{2nW!t zBZ16uez<0&DaOF3jP~;zfw}C=?&HPo6UY}d&g#y`XpC43M`H|f`ymvkPtWvXgyLW| z*L@ROWG4x%{$MBMx(=@mMsH(B~Vdq07} z)?FA32E@0v>Q1gj{Fa`1-rBxa8mtpDu_I2T(B_c$O#4`>SkA{ z#3z)v4Z4fLu{eZN{!CxGeHrg?!^g+ys3?-{&G$D6yKiIn&1uCRX%*@6PWs|qZ9-|d zK?~{Sx1~vZ=E0PI*!a`9L_|ai%gXp?8Uu54r`Kj0Euy2NC8VWoV>wnGzC#J~#M&-n z#H1~ZcIdR7g~*A63l4PEMfN=s{Kf@kZ!aDa5)!mLdIIR!`qrrqY<#vJLX?%syLdcuq5{uk(l$4g(-CFnScc#{% zpHT98%~8@zXUJSY;&*iVPgl>*J{6}uJGj7eC6nJ-Yk%WcO;@EIzn==)nNayxsMyTq z^_3H1kQ66y|+>)38orG_ehyt|86`vCIsxH$Ao&PX5Ab>)^i3h ze-@3rOApf(#b z9FRaGPb+3?aa~?+n0VXI3yy8o+z-!kHP`dDIMdY?J}*!@7ARkMi04~>q2#vDXmqu? z`GR?BLc9v(N%|+OneEL2?rx;S%-C&>_HDT(8BQM-Gr9ChPfw=quHDMG;C{sD#SEh< z7W=lF;9?^M9kk5a*B5)NY!v0xe-4Few70el!H3Wpy1O6wD#xoKH>YQ^S`bw7^HKD` z@N1DD$7P1M!c-T@%*J)$lVl%)6qw4_I?4L$B|{fFQ(?J|F&K+yR${$K-T5^)`^^rRn_8K?G`e!@zjU9o AcmMzZ literal 0 HcmV?d00001 diff --git a/paradise.dme b/paradise.dme index ba458be8dd2..e00b85bb140 100644 --- a/paradise.dme +++ b/paradise.dme @@ -914,6 +914,7 @@ #include "code\modules\clothing\gloves\boxing.dm" #include "code\modules\clothing\gloves\color.dm" #include "code\modules\clothing\gloves\miscellaneous.dm" +#include "code\modules\clothing\gloves\rings.dm" #include "code\modules\clothing\head\collectable.dm" #include "code\modules\clothing\head\hardhat.dm" #include "code\modules\clothing\head\helmet.dm"