mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 23:17:04 +01:00
34 lines
1.1 KiB
Plaintext
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]")
|