mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +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]."))
|
||||
|
||||
@@ -844,25 +844,25 @@ var/list/asteroid_floor_smooth = list(
|
||||
var/list/ore = list()
|
||||
for(var/metal in resources)
|
||||
switch(metal)
|
||||
if("silicates")
|
||||
if(ORE_SAND)
|
||||
ore += /obj/item/ore/glass
|
||||
if("carbonaceous rock")
|
||||
if(ORE_COAL)
|
||||
ore += /obj/item/ore/coal
|
||||
if("iron")
|
||||
if(ORE_IRON)
|
||||
ore += /obj/item/ore/iron
|
||||
if("gold")
|
||||
if(ORE_GOLD)
|
||||
ore += /obj/item/ore/gold
|
||||
if("silver")
|
||||
if(ORE_SILVER)
|
||||
ore += /obj/item/ore/silver
|
||||
if("diamond")
|
||||
if(ORE_DIAMOND)
|
||||
ore += /obj/item/ore/diamond
|
||||
if("uranium")
|
||||
if(ORE_URANIUM)
|
||||
ore += /obj/item/ore/uranium
|
||||
if("phoron")
|
||||
if(ORE_PHORON)
|
||||
ore += /obj/item/ore/phoron
|
||||
if("osmium")
|
||||
if(ORE_PLATINUM)
|
||||
ore += /obj/item/ore/osmium
|
||||
if("hydrogen")
|
||||
if(ORE_HYDROGEN)
|
||||
ore += /obj/item/ore/hydrogen
|
||||
else
|
||||
if(prob(25))
|
||||
|
||||
Reference in New Issue
Block a user