Modify redemption costs, iron works in mint now (#110)

* Modify redemption costs, iron works in mint now

* Restore comma overwritten by byond save
This commit is contained in:
ReddeyfishVor
2018-04-14 22:53:40 -07:00
committed by GitHub
parent 3887bd59cd
commit 253638d459
2 changed files with 43 additions and 24 deletions
+4 -4
View File
@@ -17,7 +17,7 @@
var/amt_uranium = 0
var/newCoins = 0 //how many coins the machine made in it's last load
var/processing = 0
var/chosen = DEFAULT_WALL_MATERIAL //which material will be used to make coins
var/chosen = "iron" //which material will be used to make coins
var/coinsToProduce = 10
@@ -52,7 +52,7 @@
amt_phoron += 100 * O.get_amount()
if("uranium")
amt_uranium += 100 * O.get_amount()
if(DEFAULT_WALL_MATERIAL)
if("iron")
amt_iron += 100 * O.get_amount()
else
processed = 0
@@ -81,7 +81,7 @@
else
dat += text("<A href='?src=\ref[src];choose=silver'>Choose</A>")
dat += text("<br><font color='#555555'><b>Iron inserted: </b>[amt_iron]</font> ")
if (chosen == DEFAULT_WALL_MATERIAL)
if (chosen == "iron")
dat += text("chosen")
else
dat += text("<A href='?src=\ref[src];choose=metal'>Choose</A>")
@@ -133,7 +133,7 @@
icon_state = "coinpress1"
var/obj/item/weapon/moneybag/M
switch(chosen)
if(DEFAULT_WALL_MATERIAL)
if("iron")
while(amt_iron > 0 && coinsToProduce > 0)
if (locate(/obj/item/weapon/moneybag,output.loc))
M = locate(/obj/item/weapon/moneybag,output.loc)