mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-15 20:52:07 +00:00
Merge pull request #6675 from GeneriedJenelle/patch-1
Logs graffiti and crayon drawings: Non-Cursed PR
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
@@ -69,6 +69,9 @@ LOG_ATTACK
|
||||
## log pda messages
|
||||
LOG_PDA
|
||||
|
||||
## log graffiti drawings
|
||||
LOG_GRAFFITI
|
||||
|
||||
## log world.log messages
|
||||
# LOG_WORLD_OUTPUT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user