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:
adacovsk
2022-02-22 11:39:14 -05:00
committed by GitHub
parent eecab21bff
commit b30153715d
57 changed files with 951 additions and 988 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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