Adds log message (#26281)

This commit is contained in:
DGamerL
2024-07-25 14:22:19 +02:00
committed by GitHub
parent d998af7f05
commit d03ba0d39d
+2 -1
View File
@@ -2084,7 +2084,7 @@
var/punishment = input(owner, "How would you like to smite [M]?", "Its good to be baaaad...", "") as null|anything in ptypes
if(!(punishment in ptypes))
return
var/logmsg = null
var/logmsg = "UNSET LOG MESSAGE: [punishment]"
switch(punishment)
// These smiting types are valid for all living mobs
if("Lightning bolt")
@@ -2223,6 +2223,7 @@
var/turf/start = locate(starting_turf_x, starting_turf_y, M.z)
new /obj/effect/immovablerod/smite(start, M)
logmsg = "a rod"
if(logmsg)
log_admin("[key_name(owner)] smited [key_name(M)] with: [logmsg]")
message_admins("[key_name_admin(owner)] smited [key_name_admin(M)] with: [logmsg]")