mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Adds admin logging and messaging (#25625)
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
target.reagents.reagent_list += reagent
|
||||
|
||||
reagent.volume = new_volume
|
||||
log_and_message_admins("[ui.user] has added [new_volume]u of [reagent] to [target]!")
|
||||
|
||||
if("edit_volume")
|
||||
var/reagent_uid = params["uid"]
|
||||
@@ -85,6 +86,7 @@
|
||||
if(isnull(new_volume))
|
||||
return
|
||||
reagent.volume = new_volume
|
||||
log_and_message_admins("[ui.user] has edited volume of [reagent] to [new_volume]u in [target]!")
|
||||
|
||||
if("delete_reagent")
|
||||
var/reagent_uid = params["uid"]
|
||||
@@ -92,12 +94,14 @@
|
||||
if(isnull(reagent))
|
||||
return FALSE
|
||||
target.reagents.reagent_list -= reagent
|
||||
log_and_message_admins("[ui.user] has deleted [reagent] from [target]!")
|
||||
|
||||
if("update_total")
|
||||
target.reagents.update_total()
|
||||
|
||||
if("react_reagents")
|
||||
target.reagents.handle_reactions()
|
||||
log_and_message_admins("[ui.user] has forced a chemical reaction in [target]!")
|
||||
|
||||
else
|
||||
. = FALSE
|
||||
|
||||
Reference in New Issue
Block a user