mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Scoreboard organization/optimization (#32094)
* Scoreboard * Update next_map.dm * Update gameticker.dm * Update role.dm * ugh * safe me * added dat to every proc * Update scoreboard.dm * Update scoreboard.dm * Update department_score.dm * turfssingulod * Update misc_score.dm * Update scoreboard.dm * Update scoreboard.dm * Update mobs.dm * Update items.dm * Update stunbaton.dm * Update human_attackhand.dm * Update living_defense.dm * Update misc_score.dm * Update swords_axes_etc.dm * Update human_attackhand.dm * Update misc_score.dm * Update misc_score.dm * Update scoreboard.dm
This commit is contained in:
@@ -412,7 +412,7 @@
|
||||
while(R.checkIngredients(ore)) //While we have materials for this
|
||||
for(var/ore_id in R.ingredients)
|
||||
ore.removeAmount(ore_id, R.ingredients[ore_id]) //arg1 = ore name, arg2 = how much per sheet
|
||||
score["oremined"] += 1 //Count this ore piece as processed for the scoreboard
|
||||
score.oremined += 1 //Count this ore piece as processed for the scoreboard
|
||||
|
||||
drop_stack(R.yieldtype, out_T)
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
for(var/O in B.stored_ores)
|
||||
var/amount = B.stored_ores[O]
|
||||
SmeltOreType(O, amount)
|
||||
score["oremined"] += amount
|
||||
score.oremined += amount
|
||||
else
|
||||
for(var/i = 0; i < 10; i++)
|
||||
var/obj/item/stack/ore/O = locate() in in_T
|
||||
@@ -59,7 +59,7 @@
|
||||
continue //Skip slag for now.
|
||||
if(O)
|
||||
SmeltMineral(O)
|
||||
score["oremined"] += O.amount
|
||||
score.oremined += O.amount
|
||||
else
|
||||
break
|
||||
|
||||
|
||||
@@ -369,7 +369,7 @@
|
||||
while(R.checkIngredients(materials)) //While we have materials for this
|
||||
for(var/ore_id in R.ingredients)
|
||||
materials.removeAmount(ore_id, R.ingredients[ore_id]) //arg1 = ore name, arg2 = how much per sheet
|
||||
score["oremined"] += 1 //Count this ore piece as processed for the scoreboard
|
||||
score.oremined += 1 //Count this ore piece as processed for the scoreboard
|
||||
if(istype(loc,/obj/structure/forge))
|
||||
drop_stack(R.yieldtype,loc.loc)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user