mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 00:35:45 +01:00
[MIRROR] Reagent Addictions (#10888)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Will
Cameron Lennox
parent
ca7345cb67
commit
dc9ccc60c2
@@ -1092,10 +1092,10 @@ SUBSYSTEM_DEF(internal_wiki)
|
||||
SSinternal_wiki.add_icon(data, initial(beaker_path.icon), initial(beaker_path.icon_state), R.color)
|
||||
// Get internal data
|
||||
data["description"] = R.description
|
||||
/* Downstream features
|
||||
data["addictive"] = 0
|
||||
if(R.id in addictives)
|
||||
data["addictive"] = (R.id in fast_addictives) ? 2 : 1
|
||||
if(R.id in get_addictive_reagents(ADDICT_ALL))
|
||||
data["addictive"] = TRUE
|
||||
/* Downstream features
|
||||
data["industrial_use"] = R.industrial_use
|
||||
data["supply_points"] = R.supply_conversion_value ? R.supply_conversion_value : 0
|
||||
var/value = R.supply_conversion_value * REAGENTS_PER_SHEET * SSsupply.points_per_money
|
||||
@@ -1111,9 +1111,9 @@ SUBSYSTEM_DEF(internal_wiki)
|
||||
/datum/internal_wiki/page/chemical/get_print()
|
||||
var/body = ""
|
||||
body += "<b>Description: </b>[data["description"]]<br>"
|
||||
/* Downstream features
|
||||
if(data["addictive"])
|
||||
body += "<b>DANGER, [data["addictive"] > 1 ? "highly " : ""]addictive.</b><br>"
|
||||
body += "<b>DANGER, addictive.</b><br>"
|
||||
/* Downstream features
|
||||
if(data["industrial_use"])
|
||||
body += "<b>Industrial Use: </b>[data["industrial_use"]]<br>"
|
||||
var/tank_size = CARGOTANKER_VOLUME
|
||||
|
||||
Reference in New Issue
Block a user