mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
65 lines
1.2 KiB
Plaintext
65 lines
1.2 KiB
Plaintext
var/list/name_to_mineral
|
|
|
|
proc/SetupMinerals()
|
|
name_to_mineral = list()
|
|
for(var/type in typesof(/mineral) - /mineral)
|
|
var/mineral/new_mineral = new type
|
|
if(!new_mineral.name)
|
|
continue
|
|
name_to_mineral[new_mineral.name] = new_mineral
|
|
return 1
|
|
|
|
mineral
|
|
///What am I called?
|
|
var/name
|
|
var/display_name
|
|
///How much ore?
|
|
var/result_amount
|
|
///Does this type of deposit spread?
|
|
var/spread = 1
|
|
///Chance of spreading in any direction
|
|
var/spread_chance
|
|
|
|
///Path to the resultant ore.
|
|
var/ore
|
|
|
|
New()
|
|
. = ..()
|
|
if(!display_name)
|
|
display_name = name
|
|
|
|
mineral/uranium
|
|
name = "Uranium"
|
|
result_amount = 5
|
|
spread_chance = 10
|
|
ore = /obj/item/weapon/ore/uranium
|
|
|
|
mineral/iron
|
|
name = "Iron"
|
|
result_amount = 5
|
|
spread_chance = 25
|
|
ore = /obj/item/weapon/ore/iron
|
|
|
|
mineral/diamond
|
|
name = "Diamond"
|
|
result_amount = 5
|
|
spread_chance = 10
|
|
ore = /obj/item/weapon/ore/diamond
|
|
|
|
mineral/gold
|
|
name = "Gold"
|
|
result_amount = 5
|
|
spread_chance = 10
|
|
ore = /obj/item/weapon/ore/gold
|
|
|
|
mineral/silver
|
|
name = "Silver"
|
|
result_amount = 5
|
|
spread_chance = 10
|
|
ore = /obj/item/weapon/ore/silver
|
|
|
|
mineral/phoron
|
|
name = "Phoron"
|
|
result_amount = 5
|
|
spread_chance = 25
|
|
ore = /obj/item/weapon/ore/phoron |