Files
Citadel-Station-13-RP/code/modules/logging/logging.dm
T
2023-09-22 22:15:31 +02:00

34 lines
1.1 KiB
Plaintext

//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2023 Citadel Station developers. *//
//! New action logging file. Global helpers for things like attack, construction, say, etc, will go in here. !//
// todo: flesh this file out
/**
* Logs a construction action / step
*
* @params
* * target - target
* * message - the message
*/
/mob/proc/actor_construction_log(atom/target, message)
add_construction_logs(src, target, message)
/proc/add_construction_logs(mob/actor, atom/target, message)
log_game("LEGACY CONSTRUCTION: [actor] --> [target] ([COORD(target)]): [message]")
// todo: remove above
/**
* Log construction action
*/
/proc/log_construction(mob/user, atom/target, message)
log_game("CONSTRUCTION: [key_name(user)] [COORD(user)] -> [target] [COORD(target)]: [message]")
/**
* Log stack crafting
*/
/proc/log_stackcrafting(mob/user, obj/item/stack/stack, name, amount, used, turf/where = get_turf(user))
log_game("STACKCRAFT: [key_name(user)] crafted [amount] of [name] with [used] of [stack] at [where]")