mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
[MIRROR] Changes HFR corner to use 4-way icons [MDB IGNORE] (#17342)
* Changes HFR corner to use 4-way icons (#71029) ## About The Pull Request Changes the HFR corner icon and some of the code so that it uses 4-way icons. Fixes #64729. The way the icon is currently set up, the cardinal directions are completely blank and the icons are on the intercardinals only. Because of this, using the chameleon projector on a HFR corner means you'll be completely invisible since the player faces cardinals but the HFR corner doesn't have cardinal sprites. ## Changelog 🆑 fix: fixed an exploit that let you go completely invisible by scanning a HFR corner with a chameleon projector /🆑 * Changes HFR corner to use 4-way icons Co-authored-by: GoblinBackwards <22856555+GoblinBackwards@users.noreply.github.com>
This commit is contained in:
@@ -407,7 +407,6 @@
|
||||
icon_state_off = "corner_off"
|
||||
icon_state_open = "corner_open"
|
||||
icon_state_active = "corner_active"
|
||||
dir = SOUTHEAST
|
||||
|
||||
/obj/item/paper/guides/jobs/atmos/hypertorus
|
||||
name = "paper- 'Quick guide to safe handling of the HFR'"
|
||||
@@ -490,6 +489,15 @@
|
||||
var/direction = get_dir(src, box)
|
||||
if(box.box_type == "corner")
|
||||
if(ISDIAGONALDIR(direction))
|
||||
switch(direction)
|
||||
if(NORTHEAST)
|
||||
direction = EAST
|
||||
if(SOUTHEAST)
|
||||
direction = SOUTH
|
||||
if(SOUTHWEST)
|
||||
direction = WEST
|
||||
if(NORTHWEST)
|
||||
direction = NORTH
|
||||
box.dir = direction
|
||||
parts |= box
|
||||
continue
|
||||
|
||||
@@ -24,16 +24,16 @@
|
||||
. = FALSE
|
||||
switch(dir)
|
||||
if(SOUTHEAST)
|
||||
if(object.dir != dir)
|
||||
if(object.dir != SOUTH)
|
||||
. = FALSE
|
||||
if(SOUTHWEST)
|
||||
if(object.dir != dir)
|
||||
if(object.dir != WEST)
|
||||
. = FALSE
|
||||
if(NORTHEAST)
|
||||
if(object.dir != dir)
|
||||
if(object.dir != EAST)
|
||||
. = FALSE
|
||||
if(NORTHWEST)
|
||||
if(object.dir != dir)
|
||||
if(object.dir != NORTH)
|
||||
. = FALSE
|
||||
corners |= object
|
||||
continue
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 71 KiB |
Reference in New Issue
Block a user