mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Update drill.dm
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
var/total_harvest = harvest_speed //Ore harvest-per-tick.
|
||||
var/found_resource = 0 //If this doesn't get set, the area is depleted and the drill errors out.
|
||||
|
||||
for(var/metal in GLOB.ore_types)
|
||||
for(var/metal in ore_types)
|
||||
|
||||
if(contents.len >= capacity)
|
||||
system_error("Insufficient storage space.")
|
||||
@@ -145,7 +145,7 @@
|
||||
harvesting.resources[metal] = 0
|
||||
|
||||
for(var/i=1, i <= create_ore, i++)
|
||||
var/oretype = GLOB.ore_types[metal]
|
||||
var/oretype = ore_types[metal]
|
||||
new oretype(src)
|
||||
|
||||
if(!found_resource) // If a drill can't see an advanced material, it will destroy it while going through.
|
||||
|
||||
Reference in New Issue
Block a user