Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more logs #1042

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions code/game/machinery/computer/arcade/_arcade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
user.add_mood_event("arcade", /datum/mood_event/arcade)
if(prob(0.0001)) //1 in a million
new /obj/item/gun/energy/pulse/prize(get_turf(src))
/// BANDASTATION ADDITION START - LOGS
log_game("[key_name(user)] has obtained a pulse rifle from [src].")
message_admins("[ADMIN_LOOKUPFLW(user)] has obtained a pulse rifle from [src].")
/// BANDASTATION ADDITION END - LOGS
visible_message(span_notice("[src] dispenses.. woah, a gun! Way past cool."), span_notice("You hear a chime and a shot."))
user.client.give_award(/datum/award/achievement/misc/pulse, user)
continue
Expand All @@ -97,5 +101,9 @@
else
prizeselect = pick_weight(GLOB.arcade_prize_pool)
var/atom/movable/the_prize = new prizeselect(get_turf(src))
/// BANDASTATION ADDITION START - LOGS
log_game("[key_name(user)] has obtained [prizeselect] from [src].")
message_admins("[ADMIN_LOOKUPFLW(user)] has obtained [prizeselect] from [src].")
/// BANDASTATION ADDITION END - LOGS
playsound(src, 'sound/machines/machine_vend.ogg', 50, TRUE, extrarange = -3)
visible_message(span_notice("[src] dispenses [the_prize]!"), span_notice("You hear a chime and a clunk."))
4 changes: 4 additions & 0 deletions code/game/objects/items/stacks/tiles/tile_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
target_plating = target_plating.place_on_top(placed_turf_path, flags = CHANGETURF_INHERIT_AIR)
target_plating.setDir(turf_dir)
playsound(target_plating, 'sound/items/weapons/genhit.ogg', 50, TRUE)
/// BANDASTATION ADDITION START - LOGS
log_game("[key_name(user)] has placed [src] at [loc_name(target_plating)].")
message_admins("[ADMIN_LOOKUPFLW(user)] has placed [src] at [loc_name(target_plating)].")
/// BANDASTATION ADDITION END - LOGS
return target_plating

/obj/item/stack/tile/handle_openspace_click(turf/target, mob/user, list/modifiers)
Expand Down
Loading