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

Circuit tile fixes #1872

Merged
merged 1 commit into from
May 27, 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
11 changes: 9 additions & 2 deletions code/game/objects/items/stacks/tiles/tile_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,13 @@
inhand_icon_state = "tile-bcircuit"
turf_type = /turf/open/floor/circuit
merge_type = /obj/item/stack/tile/circuit
// Monkestation Addition Start: They stack, this is better imo than adding a new subtype and leaving this base as unused
tile_reskin_types = list(
/obj/item/stack/tile/circuit,
/obj/item/stack/tile/circuit/green,
/obj/item/stack/tile/circuit/red,
)
// End Monkestation Addition

/obj/item/stack/tile/circuit/green
name = "green circuit tile"
Expand All @@ -1038,7 +1045,7 @@
icon_state = "tile_gcircuit"
inhand_icon_state = "tile-gcircuit"
turf_type = /turf/open/floor/circuit/green
merge_type = /obj/item/stack/tile/circuit/green
//merge_type = /obj/item/stack/tile/circuit/green Monkestation Edit: merges with all circuit floors

/obj/item/stack/tile/circuit/green/anim
turf_type = /turf/open/floor/circuit/green/anim
Expand All @@ -1051,7 +1058,7 @@
icon_state = "tile_rcircuit"
inhand_icon_state = "tile-rcircuit"
turf_type = /turf/open/floor/circuit/red
merge_type = /obj/item/stack/tile/circuit/red
//merge_type = /obj/item/stack/tile/circuit/red Monkestation Edit: merges with all circuit floors

/obj/item/stack/tile/circuit/red/anim
turf_type = /turf/open/floor/circuit/red/anim
Expand Down
8 changes: 8 additions & 0 deletions monkestation/code/game/turfs/open/floor/misc_floor.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/turf/open/floor/circuit/green/anim/update_icon_state()
icon = on ? 'icons/turf/floors.dmi' : 'monkestation/icons/turf/floors.dmi'
return ..()

/turf/open/floor/circuit/red/anim/update_icon_state()
icon = on ? 'icons/turf/floors.dmi' : 'monkestation/icons/turf/floors.dmi'
return ..()

/obj/item/stack/tile/sandy_dirt
name = "sandy dirt tiles"
singular_name = "sandy dirt tile"
Expand Down
Binary file added monkestation/icons/turf/floors.dmi
Binary file not shown.
Loading