mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Fracking list runtime fix (#11621)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d50162fd9a
commit
e528c9168a
@@ -224,10 +224,10 @@
|
||||
R.add_reagent(M.mineral.reagent, rand(0,volume / 8))
|
||||
// Pump deep reagents from deepdrill boreholes
|
||||
for(var/metal in GLOB.deepore_fracking_reagents)
|
||||
if(!M.resources[metal])
|
||||
if(!LAZYACCESS(M.resources,metal))
|
||||
continue
|
||||
var/list/ore_list = GLOB.deepore_fracking_reagents[metal]
|
||||
if(!ore_list || !ore_list.len)
|
||||
if(!LAZYLEN(ore_list))
|
||||
continue
|
||||
var/reagent_id = pick(ore_list)
|
||||
if(reagent_id && prob(60))
|
||||
|
||||
Reference in New Issue
Block a user