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

071024 #359

Merged
merged 6 commits into from
Jan 14, 2024
Merged
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
1 change: 1 addition & 0 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -3304,6 +3304,7 @@
#include "proxima\code\modules\mob\language\human\alain.dm"
#include "proxima\code\modules\mob\language\human\german.dm"
#include "proxima\code\modules\mob\language\human\lirris.dm"
#include "proxima\code\modules\mob\observer\ghost\ghost.dm"
#include "proxima\code\modules\nano\nanoexternal.dm"
#include "proxima\code\modules\paperwork\paper.dm"
#include "proxima\code\modules\projectiles\gun.dm"
Expand Down
2 changes: 1 addition & 1 deletion code/_onclick/ghost.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
AltClickOn(target_turf)
return
if(modifiers["shift"])
examinate(src, A)
examinate(A) //examinate(src, A)
return
A.attack_ghost(src)

Expand Down
8 changes: 3 additions & 5 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,10 @@ var/list/admin_verbs_xeno = list(
if(!check_rights(R_ADMIN))
return

if(istype(CH, /datum/click_handler/build_mode))
CH.Exit()
QDEL_NULL(CH)
if(istype(mob.GetClickHandler(), /datum/click_handler/build_mode))
mob.RemoveClickHandler(/datum/click_handler/build_mode)
else
CH = new /datum/click_handler/build_mode(src)
CH.Enter()
mob.PushClickHandler(/datum/click_handler/build_mode)

/client/proc/object_talk(var/msg as text) // -- TLE
set category = "Special Verbs"
Expand Down
2 changes: 2 additions & 0 deletions code/modules/admin/buildmode/_click_handler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@
user.client.show_popup_menus = FALSE
for(var/build_button in build_buttons)
user.client.screen += build_button
user.click_handlers.Insert(1, src)

/datum/click_handler/build_mode/Exit()
user.my_client.show_popup_menus = TRUE
for(var/build_button in build_buttons)
user.my_client.screen -= build_button
user.click_handlers.Remove(src)

/datum/click_handler/build_mode/OnDblClick(atom/A, params)
OnClick(A, params) // We treat double-clicks as normal clicks
Expand Down
4 changes: 4 additions & 0 deletions proxima/code/modules/mob/observer/ghost/ghost.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/mob/observer/ghost/verb/set_ghost_alpha()
set name = "Set Ghost Alpha"
set category = "Ghost"
alpha = alpha ? 0 : initial(alpha)
Loading