Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Crowbar764 committed Jul 11, 2024
1 parent 155804c commit b148894
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
/obj/machinery/portable_atmospherics/canister/ui_interact(mob/user, datum/tgui/ui)
. = ..()

var/client/client = user.client
if (CONFIG_GET(flag/use_exp_tracking) && client && client.get_exp_living(TRUE) < 8 HOURS) // Player with less than 8 hours playtime is interacting with this canister.
if(client.next_canister_grief_warning < world.time)
var/turf/T = get_turf(src)
client.next_canister_grief_warning = world.time + 15 MINUTES // Wait 15 minutes before alerting admins again
message_admins("[span_adminhelp("ANTI-GRIEF:")] New player [ADMIN_LOOKUPFLW(user)] has touched \a [src] at [ADMIN_VERBOSEJMP(T)].")
client.touched_canister = TRUE

/obj/machinery/portable_atmospherics/canister/goblin
name = "G-081-N canister"
gas_type = /datum/gas/goblin
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/obj/machinery/portable_atmospherics/canister/ui_interact(mob/user, datum/tgui/ui)
. = ..()

var/client/client = user.client
if (CONFIG_GET(flag/use_exp_tracking) && client && client.get_exp_living(TRUE) < 8 HOURS) // Player with less than 8 hours playtime is interacting with this canister.
if(client.next_canister_grief_warning < world.time)
var/turf/T = get_turf(src)
client.next_canister_grief_warning = world.time + 15 MINUTES // Wait 15 minutes before alerting admins again
message_admins("[span_adminhelp("ANTI-GRIEF:")] New player [ADMIN_LOOKUPFLW(user)] has touched \a [src] at [ADMIN_VERBOSEJMP(T)].")
client.touched_canister = TRUE
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -9107,6 +9107,7 @@
#include "modular_zzplurt\code\datums\components\crafting\crafting.dm"
#include "modular_zzplurt\code\game\objects\items\devices\transfer_valve.dm"
#include "modular_zzplurt\code\modules\admin\playtimes.dm"
#include "modular_zzplurt\code\modules\atmospherics\machinery\portable\canister.dm"
#include "modular_zzplurt\code\modules\client\verbs\looc.dm"
#include "modular_zzplurt\code\modules\client\verbs\ooc.dm"
#include "modular_zzplurt\code\modules\discord\tgs_commands.dm"
Expand Down

0 comments on commit b148894

Please sign in to comment.