mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Addiction rework (#3445)
* Addiction rework * a Co-authored-by: Qustinnus <Floydje123@hotmail.com> Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
This commit is contained in:
co-authored by
Qustinnus
Gandalf2k15
parent
43febe3145
commit
3b85cf1430
@@ -41,7 +41,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark)
|
||||
. = ..()
|
||||
GLOB.start_landmarks_list += src
|
||||
if(jobspawn_override)
|
||||
LAZYADDASSOC(GLOB.jobspawn_overrides, name, src)
|
||||
LAZYADDASSOCLIST(GLOB.jobspawn_overrides, name, src)
|
||||
if(name != "start")
|
||||
tag = "start*[name]"
|
||||
|
||||
|
||||
@@ -452,13 +452,12 @@ GENE SCANNER
|
||||
else
|
||||
render_list += "<span class='notice ml-1'>Subject contains no reagents in their stomach.</span>\n"
|
||||
|
||||
if(LAZYLEN(M.reagents.addiction_list))
|
||||
render_list += "<span class='boldannounce ml-1'>Subject is addicted to the following reagents:</span>\n"
|
||||
for(var/a in M.reagents.addiction_list)
|
||||
var/datum/reagent/addiction = a
|
||||
render_list += "<span class='alert ml-2'>[addiction.name]</span>\n"
|
||||
if(LAZYLEN(M.mind.active_addictions))
|
||||
render_list += "<span class='boldannounce ml-1'>Subject is addicted to the following types of drug:</span>\n"
|
||||
for(var/datum/addiction/addiction_type as anything in M.mind.active_addictions)
|
||||
render_list += "<span class='alert ml-2'>[initial(addiction_type.name)]</span>\n"
|
||||
else
|
||||
render_list += "<span class='notice ml-1'>Subject is not addicted to any reagents.</span>\n"
|
||||
render_list += "<span class='notice ml-1'>Subject is not addicted to any types of drug.</span>\n"
|
||||
|
||||
to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last <br> so we don't need handholding
|
||||
|
||||
|
||||
Reference in New Issue
Block a user