|
|
|
@@ -297,8 +297,8 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
else //Same design always gain quality
|
|
|
|
|
screen = 2.3 //Crit fail gives the same design a lot of reliability, like really a lot
|
|
|
|
|
if(linked_lathe) //Also sends salvaged materials to a linked protolathe, if any.
|
|
|
|
|
linked_lathe.m_amount += min((linked_lathe.max_material_storage - linked_lathe.TotalMaterials()), (linked_destroy.loaded_item.materials[MAT_METAL]*(linked_destroy.decon_mod/10)))
|
|
|
|
|
linked_lathe.g_amount += min((linked_lathe.max_material_storage - linked_lathe.TotalMaterials()), (linked_destroy.loaded_item.materials[MAT_GLASS]*(linked_destroy.decon_mod/10)))
|
|
|
|
|
for(var/material in linked_destroy.loaded_item.materials)
|
|
|
|
|
linked_lathe.materials.insert_amount(min((linked_lathe.materials.max_amount - linked_lathe.materials.total_amount), (linked_destroy.loaded_item.materials[material]*(linked_destroy.decon_mod/10))), material)
|
|
|
|
|
linked_destroy.loaded_item = null
|
|
|
|
|
else
|
|
|
|
|
screen = 1.0
|
|
|
|
@@ -397,33 +397,17 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
flick("protolathe_n",linked_lathe)
|
|
|
|
|
use_power(power)
|
|
|
|
|
|
|
|
|
|
for(var/M in being_built.materials)
|
|
|
|
|
if(linked_lathe.check_mat(being_built, M) < amount)
|
|
|
|
|
src.visible_message("<span class='notice'>The [src.name] beeps, \"Not enough materials to complete prototype.\"</span>")
|
|
|
|
|
enough_materials = 0
|
|
|
|
|
g2g = 0
|
|
|
|
|
break
|
|
|
|
|
var/list/efficient_mats = list()
|
|
|
|
|
for(var/MAT in being_built.materials)
|
|
|
|
|
efficient_mats[MAT] = being_built.materials[MAT] / coeff
|
|
|
|
|
|
|
|
|
|
if(!linked_lathe.materials.has_materials(efficient_mats, amount))
|
|
|
|
|
src.visible_message("<span class='notice'>The [src.name] beeps, \"Not enough materials to complete prototype.\"</span>")
|
|
|
|
|
enough_materials = 0
|
|
|
|
|
g2g = 0
|
|
|
|
|
|
|
|
|
|
if(enough_materials)
|
|
|
|
|
for(var/M in being_built.materials)
|
|
|
|
|
switch(M)
|
|
|
|
|
if(MAT_METAL)
|
|
|
|
|
linked_lathe.m_amount = max(0, (linked_lathe.m_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
if(MAT_GLASS)
|
|
|
|
|
linked_lathe.g_amount = max(0, (linked_lathe.g_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
if(MAT_GOLD)
|
|
|
|
|
linked_lathe.gold_amount = max(0, (linked_lathe.gold_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
if(MAT_SILVER)
|
|
|
|
|
linked_lathe.silver_amount = max(0, (linked_lathe.silver_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
if(MAT_PLASMA)
|
|
|
|
|
linked_lathe.plasma_amount = max(0, (linked_lathe.plasma_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
if(MAT_URANIUM)
|
|
|
|
|
linked_lathe.uranium_amount = max(0, (linked_lathe.uranium_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
if(MAT_DIAMOND)
|
|
|
|
|
linked_lathe.diamond_amount = max(0, (linked_lathe.diamond_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
if(MAT_BANANIUM)
|
|
|
|
|
linked_lathe.clown_amount = max(0, (linked_lathe.clown_amount-(being_built.materials[M]/coeff * amount)))
|
|
|
|
|
else
|
|
|
|
|
linked_lathe.reagents.remove_reagent(M, being_built.materials[M]/coeff * amount)
|
|
|
|
|
linked_lathe.materials.use_amount(efficient_mats, amount)
|
|
|
|
|
|
|
|
|
|
var/P = being_built.build_path //lets save these values before the spawn() just in case. Nobody likes runtimes.
|
|
|
|
|
var/O = being_built.locked
|
|
|
|
@@ -513,40 +497,26 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
|
|
|
|
|
else if(href_list["lathe_ejectsheet"] && linked_lathe) //Causes the protolathe to eject a sheet of material
|
|
|
|
|
var/desired_num_sheets = text2num(href_list["lathe_ejectsheet_amt"])
|
|
|
|
|
var/res_amount, type
|
|
|
|
|
var/MAT
|
|
|
|
|
switch(href_list["lathe_ejectsheet"])
|
|
|
|
|
if("metal")
|
|
|
|
|
type = /obj/item/stack/sheet/metal
|
|
|
|
|
res_amount = "m_amount"
|
|
|
|
|
MAT = MAT_METAL
|
|
|
|
|
if("glass")
|
|
|
|
|
type = /obj/item/stack/sheet/glass
|
|
|
|
|
res_amount = "g_amount"
|
|
|
|
|
MAT = MAT_GLASS
|
|
|
|
|
if("gold")
|
|
|
|
|
type = /obj/item/stack/sheet/mineral/gold
|
|
|
|
|
res_amount = "gold_amount"
|
|
|
|
|
MAT = MAT_GOLD
|
|
|
|
|
if("silver")
|
|
|
|
|
type = /obj/item/stack/sheet/mineral/silver
|
|
|
|
|
res_amount = "silver_amount"
|
|
|
|
|
MAT = MAT_SILVER
|
|
|
|
|
if("plasma")
|
|
|
|
|
type = /obj/item/stack/sheet/mineral/plasma
|
|
|
|
|
res_amount = "plasma_amount"
|
|
|
|
|
MAT = MAT_PLASMA
|
|
|
|
|
if("uranium")
|
|
|
|
|
type = /obj/item/stack/sheet/mineral/uranium
|
|
|
|
|
res_amount = "uranium_amount"
|
|
|
|
|
MAT = MAT_URANIUM
|
|
|
|
|
if("diamond")
|
|
|
|
|
type = /obj/item/stack/sheet/mineral/diamond
|
|
|
|
|
res_amount = "diamond_amount"
|
|
|
|
|
MAT = MAT_DIAMOND
|
|
|
|
|
if("clown")
|
|
|
|
|
type = /obj/item/stack/sheet/mineral/bananium
|
|
|
|
|
res_amount = "clown_amount"
|
|
|
|
|
if(ispath(type) && hasvar(linked_lathe, res_amount))
|
|
|
|
|
var/obj/item/stack/sheet/sheet = new type(linked_lathe.loc)
|
|
|
|
|
var/available_num_sheets = round(linked_lathe.vars[res_amount]/sheet.perunit)
|
|
|
|
|
if(available_num_sheets>0)
|
|
|
|
|
sheet.amount = min(available_num_sheets, desired_num_sheets)
|
|
|
|
|
linked_lathe.vars[res_amount] = max(0, (linked_lathe.vars[res_amount]-sheet.amount * sheet.perunit))
|
|
|
|
|
else
|
|
|
|
|
qdel(sheet)
|
|
|
|
|
MAT = MAT_BANANIUM
|
|
|
|
|
linked_lathe.materials.retrieve_sheets(desired_num_sheets, MAT)
|
|
|
|
|
|
|
|
|
|
else if(href_list["imprinter_ejectsheet"] && linked_imprinter) //Causes the protolathe to eject a sheet of material
|
|
|
|
|
var/desired_num_sheets = text2num(href_list["imprinter_ejectsheet_amt"])
|
|
|
|
|
var/res_amount, type
|
|
|
|
@@ -836,7 +806,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
dat += "<A href='?src=\ref[src];menu=3.2'>Material Storage</A>"
|
|
|
|
|
dat += "<A href='?src=\ref[src];menu=3.3'>Chemical Storage</A><div class='statusDisplay'>"
|
|
|
|
|
dat += "<h3>Protolathe Menu:</h3><BR>"
|
|
|
|
|
dat += "<B>Material Amount:</B> [linked_lathe.TotalMaterials()] / [linked_lathe.max_material_storage]<BR>"
|
|
|
|
|
dat += "<B>Material Amount:</B> [linked_lathe.materials.total_amount] / [linked_lathe.materials.max_amount]<BR>"
|
|
|
|
|
dat += "<B>Chemical Volume:</B> [linked_lathe.reagents.total_volume] / [linked_lathe.reagents.maximum_volume]<BR>"
|
|
|
|
|
|
|
|
|
|
dat += "<form name='search' action='?src=\ref[src]'> \
|
|
|
|
@@ -854,7 +824,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
dat += "<A href='?src=\ref[src];menu=1.0'>Main Menu</A>"
|
|
|
|
|
dat += "<A href='?src=\ref[src];menu=3.1'>Protolathe Menu</A>"
|
|
|
|
|
dat += "<div class='statusDisplay'><h3>Browsing [selected_category]:</h3><BR>"
|
|
|
|
|
dat += "<B>Material Amount:</B> [linked_lathe.TotalMaterials()] / [linked_lathe.max_material_storage]<BR>"
|
|
|
|
|
dat += "<B>Material Amount:</B> [linked_lathe.materials.total_amount] / [linked_lathe.materials.max_amount]<BR>"
|
|
|
|
|
dat += "<B>Chemical Volume:</B> [linked_lathe.reagents.total_volume] / [linked_lathe.reagents.maximum_volume]<HR>"
|
|
|
|
|
|
|
|
|
|
var/coeff = linked_lathe.efficiency_coeff
|
|
|
|
@@ -891,7 +861,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
dat += "<A href='?src=\ref[src];menu=1.0'>Main Menu</A>"
|
|
|
|
|
dat += "<A href='?src=\ref[src];menu=3.1'>Protolathe Menu</A>"
|
|
|
|
|
dat += "<div class='statusDisplay'><h3>Search results:</h3><BR>"
|
|
|
|
|
dat += "<B>Material Amount:</B> [linked_lathe.TotalMaterials()] / [linked_lathe.max_material_storage]<BR>"
|
|
|
|
|
dat += "<B>Material Amount:</B> [linked_lathe.materials.total_amount] / [linked_lathe.materials.max_amount]<BR>"
|
|
|
|
|
dat += "<B>Chemical Volume:</B> [linked_lathe.reagents.total_volume] / [linked_lathe.reagents.maximum_volume]<HR>"
|
|
|
|
|
|
|
|
|
|
var/coeff = linked_lathe.efficiency_coeff
|
|
|
|
@@ -925,52 +895,60 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
dat += "<A href='?src=\ref[src];menu=3.1'>Protolathe Menu</A><div class='statusDisplay'>"
|
|
|
|
|
dat += "<h3>Material Storage:</h3><BR><HR>"
|
|
|
|
|
//Metal
|
|
|
|
|
dat += "* [linked_lathe.m_amount] of Metal: "
|
|
|
|
|
if(linked_lathe.m_amount >= 3750) dat += "<A href='?src=\ref[src];lathe_ejectsheet=metal;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.m_amount >= 18750) dat += "<A href='?src=\ref[src];lathe_ejectsheet=metal;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.m_amount >= 3750) dat += "<A href='?src=\ref[src];lathe_ejectsheet=metal;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/m_amount = linked_lathe.materials.amount(MAT_METAL)
|
|
|
|
|
dat += "* [m_amount] of Metal: "
|
|
|
|
|
if(m_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=metal;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(m_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=metal;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(m_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=metal;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Glass
|
|
|
|
|
dat += "* [linked_lathe.g_amount] of Glass: "
|
|
|
|
|
if(linked_lathe.g_amount >= 3750) dat += "<A href='?src=\ref[src];lathe_ejectsheet=glass;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.g_amount >= 18750) dat += "<A href='?src=\ref[src];lathe_ejectsheet=glass;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.g_amount >= 3750) dat += "<A href='?src=\ref[src];lathe_ejectsheet=glass;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/g_amount = linked_lathe.materials.amount(MAT_GLASS)
|
|
|
|
|
dat += "* [g_amount] of Glass: "
|
|
|
|
|
if(g_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=glass;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(g_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=glass;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(g_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=glass;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Gold
|
|
|
|
|
dat += "* [linked_lathe.gold_amount] of Gold: "
|
|
|
|
|
if(linked_lathe.gold_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=gold;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.gold_amount >= 10000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=gold;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.gold_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=gold;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/gold_amount = linked_lathe.materials.amount(MAT_GOLD)
|
|
|
|
|
dat += "* [gold_amount] of Gold: "
|
|
|
|
|
if(gold_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=gold;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(gold_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=gold;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(gold_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=gold;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Silver
|
|
|
|
|
dat += "* [linked_lathe.silver_amount] of Silver: "
|
|
|
|
|
if(linked_lathe.silver_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=silver;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.silver_amount >= 10000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=silver;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.silver_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=silver;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/silver_amount = linked_lathe.materials.amount(MAT_SILVER)
|
|
|
|
|
dat += "* [silver_amount] of Silver: "
|
|
|
|
|
if(silver_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=silver;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(silver_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=silver;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(silver_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=silver;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Plasma
|
|
|
|
|
dat += "* [linked_lathe.plasma_amount] of Solid Plasma: "
|
|
|
|
|
if(linked_lathe.plasma_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=plasma;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.plasma_amount >= 10000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=plasma;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.plasma_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=plasmalathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/plasma_amount = linked_lathe.materials.amount(MAT_PLASMA)
|
|
|
|
|
dat += "* [plasma_amount] of Solid Plasma: "
|
|
|
|
|
if(plasma_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=plasma;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(plasma_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=plasma;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(plasma_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=plasmalathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Uranium
|
|
|
|
|
dat += "* [linked_lathe.uranium_amount] of Uranium: "
|
|
|
|
|
if(linked_lathe.uranium_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=uranium;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.uranium_amount >= 10000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=uranium;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.uranium_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=uranium;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/uranium_amount = linked_lathe.materials.amount(MAT_URANIUM)
|
|
|
|
|
dat += "* [uranium_amount] of Uranium: "
|
|
|
|
|
if(uranium_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=uranium;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(uranium_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=uranium;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(uranium_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=uranium;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Diamond
|
|
|
|
|
dat += "* [linked_lathe.diamond_amount] of Diamond: "
|
|
|
|
|
if(linked_lathe.diamond_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=diamond;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.diamond_amount >= 10000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=diamond;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.diamond_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=diamond;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/diamond_amount = linked_lathe.materials.amount(MAT_DIAMOND)
|
|
|
|
|
dat += "* [diamond_amount] of Diamond: "
|
|
|
|
|
if(diamond_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=diamond;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(diamond_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=diamond;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(diamond_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=diamond;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Bananium
|
|
|
|
|
dat += "* [linked_lathe.clown_amount] of Bananium: "
|
|
|
|
|
if(linked_lathe.clown_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=clown;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_lathe.clown_amount >= 10000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=clown;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_lathe.clown_amount >= 2000) dat += "<A href='?src=\ref[src];lathe_ejectsheet=clown;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
var/bananium_amount = linked_lathe.materials.amount(MAT_BANANIUM)
|
|
|
|
|
dat += "* [bananium_amount] of Bananium: "
|
|
|
|
|
if(bananium_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=clown;lathe_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(bananium_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];lathe_ejectsheet=clown;lathe_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(bananium_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];lathe_ejectsheet=clown;lathe_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "</div>"
|
|
|
|
|
|
|
|
|
|
if(3.3)
|
|
|
|
@@ -1072,21 +1050,21 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|
|
|
|
dat += "<h3>Material Storage:</h3><BR><HR>"
|
|
|
|
|
//Glass
|
|
|
|
|
dat += "* [linked_imprinter.g_amount] glass: "
|
|
|
|
|
if(linked_imprinter.g_amount >= 3750) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=glass;imprinter_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_imprinter.g_amount >= 18750) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=glass;imprinter_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_imprinter.g_amount >= 3750) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=glass;imprinter_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
if(linked_imprinter.g_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=glass;imprinter_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_imprinter.g_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=glass;imprinter_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_imprinter.g_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=glass;imprinter_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Gold
|
|
|
|
|
dat += "* [linked_imprinter.gold_amount] gold: "
|
|
|
|
|
if(linked_imprinter.gold_amount >= 2000) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=gold;imprinter_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_imprinter.gold_amount >= 10000) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=gold;imprinter_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_imprinter.gold_amount >= 2000) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=gold;imprinter_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
if(linked_imprinter.gold_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=gold;imprinter_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_imprinter.gold_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=gold;imprinter_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_imprinter.gold_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=gold;imprinter_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "<BR>"
|
|
|
|
|
//Diamond
|
|
|
|
|
dat += "* [linked_imprinter.diamond_amount] diamond: "
|
|
|
|
|
if(linked_imprinter.diamond_amount >= 2000) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=diamond;imprinter_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_imprinter.diamond_amount >= 10000) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=diamond;imprinter_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_imprinter.diamond_amount >= 2000) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=diamond;imprinter_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
if(linked_imprinter.diamond_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=diamond;imprinter_ejectsheet_amt=1'>Eject</A> "
|
|
|
|
|
if(linked_imprinter.diamond_amount >= MINERAL_MATERIAL_AMOUNT*5) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=diamond;imprinter_ejectsheet_amt=5'>5x</A> "
|
|
|
|
|
if(linked_imprinter.diamond_amount >= MINERAL_MATERIAL_AMOUNT) dat += "<A href='?src=\ref[src];imprinter_ejectsheet=diamond;imprinter_ejectsheet_amt=50'>All</A>"
|
|
|
|
|
dat += "</div>"
|
|
|
|
|
|
|
|
|
|
var/datum/browser/popup = new(user, "rndconsole", name, 700, 550)
|
|
|
|
|