mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Ground Ore Fix (#17486)
This commit is contained in:
@@ -23,17 +23,17 @@
|
||||
var/list/resource_field = list()
|
||||
|
||||
var/ore_types = list(
|
||||
MATERIAL_IRON = /obj/item/ore/iron,
|
||||
MATERIAL_URANIUM = /obj/item/ore/uranium,
|
||||
MATERIAL_GOLD = /obj/item/ore/gold,
|
||||
MATERIAL_SILVER = /obj/item/ore/silver,
|
||||
MATERIAL_DIAMOND = /obj/item/ore/diamond,
|
||||
MATERIAL_PHORON = /obj/item/ore/phoron,
|
||||
MATERIAL_OSMIUM = /obj/item/ore/osmium,
|
||||
"hydrogen" = /obj/item/ore/hydrogen,
|
||||
"silicates" = /obj/item/ore/glass,
|
||||
"carbonaceous rock" = /obj/item/ore/coal
|
||||
)
|
||||
ORE_URANIUM = /obj/item/ore/uranium,
|
||||
ORE_IRON = /obj/item/ore/iron,
|
||||
ORE_COAL = /obj/item/ore/coal,
|
||||
ORE_SAND = /obj/item/ore/glass,
|
||||
ORE_PHORON = /obj/item/ore/phoron,
|
||||
ORE_SILVER = /obj/item/ore/silver,
|
||||
ORE_GOLD = /obj/item/ore/gold,
|
||||
ORE_DIAMOND = /obj/item/ore/diamond,
|
||||
ORE_PLATINUM = /obj/item/ore/osmium,
|
||||
ORE_HYDROGEN = /obj/item/ore/hydrogen
|
||||
)
|
||||
|
||||
//Upgrades
|
||||
var/harvest_speed
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
var/ore_type
|
||||
|
||||
switch(metal)
|
||||
if("silicates", "carbonaceous rock", "iron")
|
||||
if(ORE_SAND, ORE_COAL, ORE_IRON)
|
||||
ore_type = "surface minerals"
|
||||
if("gold", "silver", "diamond")
|
||||
if(ORE_GOLD, ORE_SILVER, ORE_DIAMOND)
|
||||
ore_type = "precious metals"
|
||||
if("uranium")
|
||||
if(ORE_URANIUM)
|
||||
ore_type = "nuclear fuel"
|
||||
if("phoron", "osmium", "hydrogen")
|
||||
if(ORE_PHORON, ORE_PLATINUM, ORE_HYDROGEN)
|
||||
ore_type = "exotic matter"
|
||||
|
||||
if(ore_type)
|
||||
@@ -53,4 +53,4 @@
|
||||
if(76 to INFINITY)
|
||||
result = "huge quantities"
|
||||
|
||||
to_chat(user, SPAN_NOTICE("- [result] of [ore_type]."))
|
||||
to_chat(user, SPAN_NOTICE("- [result] of [ore_type]."))
|
||||
|
||||
Reference in New Issue
Block a user