mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-28 15:40:25 +01:00
Converts gas, mat and reagent strings to defines
This commit is contained in:
@@ -166,26 +166,26 @@
|
||||
var/points = 0
|
||||
var/points_mult = 1 //VOREStation Add - multiplier for points generated when ore hits the processors
|
||||
var/static/list/ore_values = list(
|
||||
"sand" = 1,
|
||||
"hematite" = 1,
|
||||
"carbon" = 1,
|
||||
"raw copper" = 1,
|
||||
"raw tin" = 1,
|
||||
"void opal" = 3,
|
||||
"painite" = 3,
|
||||
"quartz" = 3,
|
||||
"raw bauxite" = 5,
|
||||
"phoron" = 15,
|
||||
"silver" = 16,
|
||||
"gold" = 18,
|
||||
"marble" = 20,
|
||||
"uranium" = 30,
|
||||
"diamond" = 50,
|
||||
"platinum" = 40,
|
||||
"lead" = 40,
|
||||
"mhydrogen" = 40,
|
||||
"verdantium" = 60,
|
||||
"rutile" = 40) //VOREStation Add
|
||||
ORE_SAND = 1,
|
||||
ORE_HEMATITE = 1,
|
||||
ORE_CARBON = 1,
|
||||
ORE_COPPER = 1,
|
||||
ORE_TIN = 1,
|
||||
ORE_VOPAL = 3,
|
||||
ORE_PAINITE = 3,
|
||||
ORE_QUARTZ= 3,
|
||||
ORE_BAUXITE = 5,
|
||||
ORE_PHORON = 15,
|
||||
ORE_SILVER = 16,
|
||||
ORE_GOLD = 18,
|
||||
ORE_MARBLE = 20,
|
||||
ORE_URANIUM = 30,
|
||||
ORE_DIAMOND = 50,
|
||||
ORE_PLATINUM = 40,
|
||||
ORE_LEAD = 40,
|
||||
ORE_MHYDROGEN = 40,
|
||||
ORE_VERDANTIUM = 60,
|
||||
ORE_RUTILE = 40) //VOREStation Add
|
||||
|
||||
/obj/machinery/mineral/processing_unit/Initialize()
|
||||
. = ..()
|
||||
|
||||
@@ -47,45 +47,45 @@
|
||||
BOX.stored_ore[ore] = 0
|
||||
|
||||
//Icon code here. Going from most to least common.
|
||||
if(ore == "sand")
|
||||
if(ore == ORE_SAND)
|
||||
ore_chunk.icon_state = "ore_glass"
|
||||
else if(ore == "carbon")
|
||||
else if(ore == ORE_CARBON)
|
||||
ore_chunk.icon_state = "ore_coal"
|
||||
else if(ore == "hematite")
|
||||
else if(ore == ORE_HEMATITE)
|
||||
ore_chunk.icon_state = "ore_iron"
|
||||
else if(ore == "phoron")
|
||||
else if(ore == ORE_PHORON)
|
||||
ore_chunk.icon_state = "ore_phoron"
|
||||
else if(ore == "silver")
|
||||
else if(ore == ORE_SILVER)
|
||||
ore_chunk.icon_state = "ore_silver"
|
||||
else if(ore == "gold")
|
||||
else if(ore == ORE_GOLD)
|
||||
ore_chunk.icon_state = "ore_gold"
|
||||
else if(ore == "uranium")
|
||||
else if(ore == ORE_URANIUM)
|
||||
ore_chunk.icon_state = "ore_uranium"
|
||||
else if(ore == "diamond")
|
||||
else if(ore == ORE_DIAMOND)
|
||||
ore_chunk.icon_state = "ore_diamond"
|
||||
else if(ore == "platinum")
|
||||
else if(ore == ORE_PLATINUM)
|
||||
ore_chunk.icon_state = "ore_platinum"
|
||||
else if(ore == "marble")
|
||||
else if(ore == ORE_MARBLE)
|
||||
ore_chunk.icon_state = "ore_marble"
|
||||
else if(ore == "lead")
|
||||
else if(ore == ORE_LEAD)
|
||||
ore_chunk.icon_state = "ore_lead"
|
||||
else if(ore == "rutile")
|
||||
else if(ore == ORE_RUTILE)
|
||||
ore_chunk.icon_state = "ore_rutile"
|
||||
else if(ore == "quartz")
|
||||
else if(ore == ORE_QUARTZ)
|
||||
ore_chunk.icon_state = "ore_quartz"
|
||||
else if(ore == "mhydrogen")
|
||||
else if(ore == ORE_MHYDROGEN)
|
||||
ore_chunk.icon_state = "ore_hydrogen"
|
||||
else if(ore == "verdantium")
|
||||
else if(ore == ORE_VERDANTIUM)
|
||||
ore_chunk.icon_state = "ore_verdantium"
|
||||
else if(ore == "raw copper")
|
||||
else if(ore == ORE_COPPER)
|
||||
ore_chunk.icon_state = "ore_copper"
|
||||
else if(ore == "raw tin")
|
||||
else if(ore == ORE_TIN)
|
||||
ore_chunk.icon_state = "ore_tin"
|
||||
else if(ore == "void opal")
|
||||
else if(ore == ORE_VOPAL)
|
||||
ore_chunk.icon_state = "ore_void_opal"
|
||||
else if(ore == "raw bauxite")
|
||||
else if(ore == ORE_BAUXITE)
|
||||
ore_chunk.icon_state = "ore_bauxite"
|
||||
else if(ore == "painite")
|
||||
else if(ore == ORE_PAINITE)
|
||||
ore_chunk.icon_state = "ore_painite"
|
||||
else
|
||||
ore_chunk.icon_state = "boulder[rand(1,4)]"
|
||||
@@ -102,4 +102,4 @@
|
||||
O.loc = src.output.loc
|
||||
else
|
||||
return
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user