Skip to content

Commit

Permalink
Platform Fix (#3745)
Browse files Browse the repository at this point in the history
## About The Pull Request
Adds platform internal corners
Fixed platform directions
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Changelog

:cl:
add: implements thick railings from code
fix: platform dirs
imageadd: platform internal corners
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
Erikafox authored Nov 14, 2024
1 parent ebcb98f commit c30d35a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
9 changes: 9 additions & 0 deletions code/game/objects/structures/platforms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
COMSIG_ATOM_EXIT = PROC_REF(on_exit),
)
AddElement(/datum/element/connect_loc, loc_connections)
update_appearance()

/obj/structure/platform/update_appearance(updates)
. = ..()
if(dir == 1)
layer = 2.89
else
layer = 3.08


/obj/structure/platform/corner
icon_state = "platform_corners"
Expand Down
14 changes: 10 additions & 4 deletions code/game/objects/structures/railings.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@
if(!(direction & dir))
return

if (!density)
if(!density)
return

if (leaving.throwing)
if(leaving.throwing)
return

if (leaving.movement_type & (PHASING | FLYING | FLOATING))
if(leaving.movement_type & (PHASING | FLYING | FLOATING))
return

if (leaving.move_force >= MOVE_FORCE_EXTREMELY_STRONG)
if(leaving.move_force >= MOVE_FORCE_EXTREMELY_STRONG)
return

leaving.Bump(src)
Expand Down Expand Up @@ -196,3 +196,9 @@
density = FALSE
climbable = FALSE
buildstackamount = 1

/obj/structure/railing/thick
icon_state = "railing_thick"

/obj/structure/railing/thick/corner
icon_state = "railing_thick_corner"
Binary file modified icons/obj/platform.dmi
Binary file not shown.

0 comments on commit c30d35a

Please sign in to comment.