Skip to content

Commit

Permalink
Add logging to Chef Excellence's Special Sauce and always log & admin…
Browse files Browse the repository at this point in the history
…warn on reagent transfers of dangerous reagents (#37367)

* attack_log deaths to Chef Excellence's Special Sauce

* Add special sauce to list of reagents_to_log

* Always log transfers of dangerous reagents

* fix

* Add alpha-amanitin
  • Loading branch information
brndd authored Jan 14, 2025
1 parent 2ea8380 commit 8fff8cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/game/objects/objs.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
var/global/list/reagents_to_log = list(FUEL, PLASMA, PACID, SACID, AMUTATIONTOXIN, MINDBREAKER, SPIRITBREAKER, CYANIDE, IMPEDREZENE, LUBE)
//reagents that should adminwarn upon transfer
var/global/list/reagents_to_log = list(FUEL, PLASMA, PACID, SACID, AMUTATIONTOXIN, MINDBREAKER, SPIRITBREAKER, CYANIDE, IMPEDREZENE, LUBE, CHEFSPECIAL, AMANITIN)
//dangerous reagents that should always be logged upon transfer no matter what
var/global/list/reagents_to_always_log = list(AMUTATIONTOXIN, CYANIDE, CHEFSPECIAL, AMANITIN)

/obj
var/origin_tech = null //Used by R&D to determine what research bonuses it grants.
Expand Down
2 changes: 2 additions & 0 deletions code/modules/reagents/Chemistry-Holder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ var/const/INGEST = 2
var/current_reagent_transfer = current_reagent.volume * part
if(preserve_data)
trans_data = current_reagent.data
if(current_reagent.id in reagents_to_always_log)
log_transfer = TRUE
if(log_transfer)
logged_message += "[current_reagent_transfer]u of [current_reagent.name]"
if(current_reagent.id in reagents_to_log)
Expand Down
1 change: 1 addition & 0 deletions code/modules/reagents/reagents/reagents_toxin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
/datum/reagent/chefspecial/on_overdose(var/mob/living/M)
M.death(0)
M.attack_log += "\[[time_stamp()]\]<font color='red'>Died a quick and painless death by <font color='green'>Chef Excellence's Special Sauce</font>.</font>"
log_attack("[key_name(M)] was killed by Chef Excellence's Special Sauce (CHEFSPECIAL).")

//Otherwise known as a "Mickey Finn"
/datum/reagent/chloralhydrate
Expand Down

0 comments on commit 8fff8cc

Please sign in to comment.