mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 04:37:45 +01:00
[MIRROR] Converts gas, ore, plants and reagent strings to defines (#9611)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Heroman3003
Kashargul
parent
d5b62d4159
commit
fd5d9267ff
@@ -4,28 +4,28 @@
|
||||
var/mineral_name
|
||||
if(rare_ore)
|
||||
mineral_name = pickweight(list(
|
||||
"marble" = 3,
|
||||
"uranium" = 10,
|
||||
"platinum" = 10,
|
||||
"hematite" = 20,
|
||||
"carbon" = 20,
|
||||
"diamond" = 1,
|
||||
"gold" = 8,
|
||||
"silver" = 8,
|
||||
"phoron" = 18,
|
||||
"lead" = 2,
|
||||
"verdantium" = 1))
|
||||
ORE_MARBLE = 3,
|
||||
ORE_URANIUM = 10,
|
||||
ORE_PLATINUM = 10,
|
||||
ORE_HEMATITE = 20,
|
||||
ORE_CARBON = 20,
|
||||
ORE_DIAMOND = 1,
|
||||
ORE_GOLD = 8,
|
||||
ORE_SILVER = 8,
|
||||
ORE_PHORON = 18,
|
||||
ORE_LEAD = 2,
|
||||
ORE_VERDANTIUM = 1))
|
||||
else
|
||||
mineral_name = pickweight(list(
|
||||
"marble" = 2,
|
||||
"uranium" = 5,
|
||||
"platinum" = 5,
|
||||
"hematite" = 35,
|
||||
"carbon" = 35,
|
||||
"gold" = 3,
|
||||
"silver" = 3,
|
||||
"phoron" = 25,
|
||||
"lead" = 1))
|
||||
ORE_MARBLE = 2,
|
||||
ORE_URANIUM = 5,
|
||||
ORE_PLATINUM = 5,
|
||||
ORE_HEMATITE = 35,
|
||||
ORE_CARBON = 35,
|
||||
ORE_GOLD = 3,
|
||||
ORE_SILVER = 3,
|
||||
ORE_PHORON = 25,
|
||||
ORE_LEAD = 1))
|
||||
|
||||
if(mineral_name && (mineral_name in GLOB.ore_data))
|
||||
mineral = GLOB.ore_data[mineral_name]
|
||||
|
||||
Reference in New Issue
Block a user