Skip to content

Commit b2bc4de

Browse files
authored
Coins Modernized (#8586)
* all variant coins now have price tags all variant coins now have materials coin name typo fix moneybag now uses defines throughout Topic switch iron coin replaced with plasteel variant * all variant coins now have price tags all variant coins now have materials coin name typo fix moneybag now uses defines throughout Topic switch iron coin replaced with plasteel variant * update moneybag plasteel coin now referenced by name coins now move into turf regardless of current loc of moneybag
1 parent 5e2273f commit b2bc4de

File tree

5 files changed

+29
-15
lines changed

5 files changed

+29
-15
lines changed

code/__DEFINES/misc.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@
106106
#define COIN_GOLD "Gold coin"
107107
#define COIN_SILVER "Silver coin"
108108
#define COIN_DIAMOND "Diamond coin"
109-
#define COIN_IRON "Iron coin"
109+
#define COIN_PLASTEEL "Plasteel coin"
110110
#define COIN_PLASMA "Solid plasma coin"
111111
#define COIN_URANIUM "Uranium coin"
112-
#define COIN_PLATINUM "Platunum coin"
112+
#define COIN_PLATINUM "Platinum coin"
113113

114114
#define SHARD_SHARD "shard"
115115
#define SHARD_SHRAPNEL "shrapnel"

code/game/objects/items/weapons/storage/wallets.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
if(prob(50))
8787
to_add = pick(/obj/item/spacecash/bundle/c10,/obj/item/spacecash/bundle/c100,/obj/item/spacecash/bundle/c1000,/obj/item/spacecash/bundle/c20,/obj/item/spacecash/bundle/c200,/obj/item/spacecash/bundle/c50,/obj/item/spacecash/bundle/c500)
8888
new to_add(src)
89-
to_add = pick(/obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/gold, /obj/item/coin/iron, /obj/item/coin/iron, /obj/item/coin/iron)
89+
to_add = pick(/obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/gold, /obj/item/coin/plasteel, /obj/item/coin/plasteel, /obj/item/coin/plasteel)
9090
new to_add(src)
9191
if(prob(20))
9292
new /obj/item/card/id/randomassistant(src)

code/modules/mining/abandonedcrates.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
if(63 to 64)
6969
var/t = rand(4,7)
7070
for(var/i = 0, i < t, ++i)
71-
var/newcoin = pick(/obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/iron, /obj/item/coin/iron, /obj/item/coin/iron, /obj/item/coin/gold, /obj/item/coin/diamond, /obj/item/coin/plasma, /obj/item/coin/uranium, /obj/item/coin/platinum)
71+
var/newcoin = pick(/obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/plasteel, /obj/item/coin/plasteel, /obj/item/coin/plasteel, /obj/item/coin/gold, /obj/item/coin/diamond, /obj/item/coin/plasma, /obj/item/coin/uranium, /obj/item/coin/platinum)
7272
new newcoin(src)
7373
if(65 to 68)
7474
var/t = rand(4,7)

code/modules/mining/coins.dm

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,44 @@
2020
/obj/item/coin/gold
2121
name = COIN_GOLD
2222
icon_state = "coin_gold"
23+
matter = list(MATERIAL_GOLD = 0.2)
24+
price_tag = 10
2325

2426
/obj/item/coin/silver
2527
name = COIN_SILVER
2628
icon_state = "coin_silver"
29+
matter = list(MATERIAL_SILVER = 0.2)
30+
price_tag = 8
2731

2832
/obj/item/coin/diamond
2933
name = COIN_DIAMOND
3034
icon_state = "coin_diamond"
35+
matter = list(MATERIAL_DIAMOND = 0.2)
36+
price_tag = 20
3137

32-
/obj/item/coin/iron
33-
name = COIN_IRON
38+
/obj/item/coin/plasteel
39+
name = COIN_PLASTEEL
3440
icon_state = "coin_iron"
41+
matter = list(MATERIAL_PLASTEEL = 0.2)
42+
price_tag = 6
3543

3644
/obj/item/coin/plasma
3745
name = COIN_PLASMA
3846
icon_state = "coin_plasma"
47+
matter = list(MATERIAL_PLASMA = 0.2)
48+
price_tag = 6
3949

4050
/obj/item/coin/uranium
4151
name = COIN_URANIUM
4252
icon_state = "coin_uranium"
53+
matter = list(MATERIAL_URANIUM = 0.2)
54+
price_tag = 10
4355

4456
/obj/item/coin/platinum
4557
name = COIN_PLATINUM
4658
icon_state = "coin_adamantine"
59+
matter = list(MATERIAL_PLATINUM = 0.2)
60+
price_tag = 16
4761

4862
/obj/item/coin/attackby(obj/item/W as obj, mob/user as mob)
4963
if(istype(W,/obj/item/stack/cable_coil))

code/modules/mining/money_bag.dm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
var/amt_gold = 0
1616
var/amt_silver = 0
1717
var/amt_diamond = 0
18-
var/amt_iron = 0
18+
var/amt_plasteel = 0
1919
var/amt_plasma = 0
2020
var/amt_uranium = 0
2121

@@ -24,8 +24,8 @@
2424
amt_diamond++;
2525
if (istype(C,/obj/item/coin/plasma))
2626
amt_plasma++;
27-
if (istype(C,/obj/item/coin/iron))
28-
amt_iron++;
27+
if (istype(C,/obj/item/coin/plasteel))
28+
amt_plasteel++;
2929
if (istype(C,/obj/item/coin/silver))
3030
amt_silver++;
3131
if (istype(C,/obj/item/coin/gold))
@@ -38,8 +38,8 @@
3838
dat += text("Gold coins: [amt_gold] <A href='?src=\ref[src];remove=gold'>Remove one</A><br>")
3939
if (amt_silver)
4040
dat += text("Silver coins: [amt_silver] <A href='?src=\ref[src];remove=silver'>Remove one</A><br>")
41-
if (amt_iron)
42-
dat += text("Metal coins: [amt_iron] <A href='?src=\ref[src];remove=iron'>Remove one</A><br>")
41+
if (amt_plasteel)
42+
dat += text("Plasteel coins: [amt_plasteel] <A href='?src=\ref[src];remove=plasteel'>Remove one</A><br>")
4343
if (amt_diamond)
4444
dat += text("Diamond coins: [amt_diamond] <A href='?src=\ref[src];remove=diamond'>Remove one</A><br>")
4545
if (amt_plasma)
@@ -73,17 +73,17 @@
7373
COIN = locate(/obj/item/coin/gold,src.contents)
7474
if(MATERIAL_SILVER)
7575
COIN = locate(/obj/item/coin/silver,src.contents)
76-
if("iron")
77-
COIN = locate(/obj/item/coin/iron,src.contents)
76+
if(MATERIAL_PLASTEEL)
77+
COIN = locate(/obj/item/coin/plasteel,src.contents)
7878
if(MATERIAL_DIAMOND)
7979
COIN = locate(/obj/item/coin/diamond,src.contents)
80-
if("plasma")
80+
if(MATERIAL_PLASMA)
8181
COIN = locate(/obj/item/coin/plasma,src.contents)
8282
if(MATERIAL_URANIUM)
8383
COIN = locate(/obj/item/coin/uranium,src.contents)
8484
if(!COIN)
8585
return
86-
COIN.loc = src.loc
86+
COIN.forceMove(get_turf(src))
8787
return
8888

8989

0 commit comments

Comments
 (0)