mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #9544 from VOREStation/upstream-merge-7803
[MIRROR] Fixes dark click catcher
This commit is contained in:
committed by
Chompstation Bot
parent
e1a8116a83
commit
d9c7aba53d
@@ -354,19 +354,13 @@
|
|||||||
facedir(direction)
|
facedir(direction)
|
||||||
|
|
||||||
/obj/screen/click_catcher
|
/obj/screen/click_catcher
|
||||||
|
name = "Darkness"
|
||||||
icon = 'icons/mob/screen_gen.dmi'
|
icon = 'icons/mob/screen_gen.dmi'
|
||||||
icon_state = "click_catcher"
|
icon_state = "click_catcher"
|
||||||
plane = CLICKCATCHER_PLANE
|
plane = CLICKCATCHER_PLANE
|
||||||
|
layer = LAYER_HUD_UNDER
|
||||||
mouse_opacity = 2
|
mouse_opacity = 2
|
||||||
screen_loc = "CENTER-7,CENTER-7"
|
screen_loc = "SOUTHWEST to NORTHEAST"
|
||||||
|
|
||||||
/obj/screen/click_catcher/proc/MakeGreed()
|
|
||||||
. = list()
|
|
||||||
for(var/i = 0, i<15, i++)
|
|
||||||
for(var/j = 0, j<15, j++)
|
|
||||||
var/obj/screen/click_catcher/CC = new()
|
|
||||||
CC.screen_loc = "NORTH-[i],EAST-[j]"
|
|
||||||
. += CC
|
|
||||||
|
|
||||||
/obj/screen/click_catcher/Click(location, control, params)
|
/obj/screen/click_catcher/Click(location, control, params)
|
||||||
var/list/modifiers = params2list(params)
|
var/list/modifiers = params2list(params)
|
||||||
@@ -374,7 +368,8 @@
|
|||||||
var/mob/living/carbon/C = usr
|
var/mob/living/carbon/C = usr
|
||||||
C.swap_hand()
|
C.swap_hand()
|
||||||
else
|
else
|
||||||
var/turf/T = screen_loc2turf(screen_loc, get_turf(usr))
|
var/list/P = params2list(params)
|
||||||
|
var/turf/T = screen_loc2turf(P["screen-loc"], get_turf(usr))
|
||||||
if(T)
|
if(T)
|
||||||
T.Click(location, control, params)
|
T.Click(location, control, params)
|
||||||
. = 1
|
. = 1
|
||||||
|
|||||||
@@ -227,7 +227,6 @@
|
|||||||
|
|
||||||
if(!void)
|
if(!void)
|
||||||
void = new()
|
void = new()
|
||||||
void.MakeGreed()
|
|
||||||
screen += void
|
screen += void
|
||||||
|
|
||||||
if((prefs.lastchangelog != changelog_hash) && isnewplayer(src.mob)) //bolds the changelog button on the interface so we know there are updates.
|
if((prefs.lastchangelog != changelog_hash) && isnewplayer(src.mob)) //bolds the changelog button on the interface so we know there are updates.
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 948 B |
Reference in New Issue
Block a user