mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[MIRROR] Minerals have been refactored so costs and minerals in items are now in terms of mineral defines. [MDB IGNORE] (#20916)
* Minerals have been refactored so costs and minerals in items are now in terms of mineral defines. * AI GEN RUN ONE --------- Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
co-authored by
ArcaneMusic
Gandalf
parent
05598c7c69
commit
c4d4e1da63
@@ -98,7 +98,7 @@ GLOBAL_LIST_EMPTY(silo_access_logs)
|
||||
for(var/M in materials.materials)
|
||||
var/datum/material/mat = M
|
||||
var/amount = materials.materials[M]
|
||||
var/sheets = round(amount) / MINERAL_MATERIAL_AMOUNT
|
||||
var/sheets = round(amount) / SHEET_MATERIAL_AMOUNT
|
||||
var/ref = REF(M)
|
||||
if (sheets)
|
||||
if (sheets >= 1)
|
||||
@@ -169,7 +169,7 @@ GLOBAL_LIST_EMPTY(silo_access_logs)
|
||||
var/datum/component/material_container/materials = GetComponent(/datum/component/material_container)
|
||||
var/count = materials.retrieve_sheets(text2num(href_list["eject_amt"]), eject_sheet, drop_location())
|
||||
var/list/matlist = list()
|
||||
matlist[eject_sheet] = MINERAL_MATERIAL_AMOUNT * count
|
||||
matlist[eject_sheet] = SHEET_MATERIAL_AMOUNT * count
|
||||
silo_log(src, "ejected", -count, "sheets", matlist)
|
||||
return TRUE
|
||||
else if(href_list["page"])
|
||||
|
||||
Reference in New Issue
Block a user