Skip to content

Commit

Permalink
Add holomaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Jun 23, 2024
1 parent e78064c commit 3d861ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/modules/unit_tests/required_map_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
expected_types += /obj/structure/cassette_rack/prefilled
expected_types += /obj/machinery/cryopod
expected_types += /obj/machinery/cassette/mailbox
ignored_types += /obj/machinery/cryopod/prison
expected_types += /obj/machinery/station_map/engineering
ignored_types += /obj/machinery/cryopod/prison
// monkestation end

/datum/unit_test/required_map_items/Run()
Expand Down
5 changes: 4 additions & 1 deletion monkestation/code/modules/holomaps/machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,12 @@
icon_state = "station_map_engi"
circuit = /obj/item/circuitboard/machine/station_map/engineering

/obj/machinery/station_map/engineering/attack_hand(mob/user)
/obj/machinery/station_map/engineering/Initialize()
. = ..()
REGISTER_REQUIRED_MAP_ITEM(1, INFINITY)

/obj/machinery/station_map/engineering/attack_hand(mob/user)
. = ..()
if(.)
holomap_datum.update_map(handle_overlays())

Expand Down

0 comments on commit 3d861ec

Please sign in to comment.