Merge pull request #6675 from GeneriedJenelle/patch-1

Logs graffiti and crayon drawings: Non-Cursed PR
This commit is contained in:
Atermonera
2020-02-09 20:44:25 -08:00
committed by GitHub
3 changed files with 14 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ var/list/gamemode_cache = list()
var/log_hrefs = 0 // logs all links clicked in-game. Could be used for debugging and tracking down exploits
var/log_runtime = 0 // logs world.log to a file
var/log_world_output = 0 // log world.log << messages
var/log_graffiti = 0 // logs graffiti
var/sql_enabled = 0 // for sql switching
var/allow_admin_ooccolor = 0 // Allows admins with relevant permissions to have their own ooc colour
var/allow_vote_restart = 0 // allow votes to restart
@@ -375,6 +376,9 @@ var/list/gamemode_cache = list()
if ("log_runtime")
config.log_runtime = 1
if ("log_graffiti")
config.log_graffiti = 1
if ("generate_map")
config.generate_map = 1

View File

@@ -95,6 +95,12 @@
if(instant || do_after(user, 50))
new /obj/effect/decal/cleanable/crayon(target,colour,shadeColour,drawtype)
to_chat(user, "You finish drawing.")
if(config.log_graffiti)
var/msg = "[user.client.key] ([user]) has drawn [drawtype] (with [src]) at [target.x],[target.y],[target.z]."
message_admins(msg)
log_game(msg)
target.add_fingerprint(user) // Adds their fingerprints to the floor the crayon is drawn on.
if(uses)
uses--
@@ -200,4 +206,4 @@
to_chat(user,"<span class='warning'>You ate the marker!</span>")
qdel(src)
else
..()
..()