Skip to content

Commit

Permalink
Adds icon for hive core and cluster to Xeno tacmap (#4820)
Browse files Browse the repository at this point in the history
There was supposed to be an icon for the hive core but it doesn't seem
to exist.

I added one for hive core and cluster


![dreammaker_2023-11-01_21-26-47](https://github.com/cmss13-devs/cmss13/assets/25027759/38f4d39f-4e1d-4874-bc8d-1a9a020a4604)


![2023-11-01_21-18-05](https://github.com/cmss13-devs/cmss13/assets/25027759/e0cf5302-004b-4a2a-9370-a8fcfac961a6)

My sprites even at this level are awful. If someone who is actually
artistic could make better ones I will use those. Likewise if you would
like to make 2 states for the core, damaged and healthy I can restore
the intended functionality of displaying a different icon for a damaged
core.

<!-- Remove this text and explain what the purpose of your PR is.


# Explain why it's good for the game
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
add: Xeno tacmap icons for hive core and clusters.
/:cl:

---------

Co-authored-by: Lee B <[email protected]>
  • Loading branch information
Birdtalon and Lee B authored Nov 7, 2023
1 parent a7e1d74 commit 465b4c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions code/modules/cm_aliens/structures/special/hive_cluster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@
/obj/effect/alien/resin/special/cluster/Initialize(mapload, hive_ref)
. = ..()
node = place_node()
update_minimap_icon()

/obj/effect/alien/resin/special/cluster/proc/update_minimap_icon()
SSminimaps.remove_marker(src)
SSminimaps.add_marker(src, z, MINIMAP_FLAG_XENO, "cluster")

/obj/effect/alien/resin/special/cluster/Destroy()
QDEL_NULL(node)
SSminimaps.remove_marker(src)
return ..()

/obj/effect/alien/resin/special/cluster/attack_alien(mob/living/carbon/xenomorph/M)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/cm_aliens/structures/special/pylon_core.dm
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@

/obj/effect/alien/resin/special/pylon/core/proc/update_minimap_icon()
SSminimaps.remove_marker(src)
SSminimaps.add_marker(src, z, MINIMAP_FLAG_XENO, "core[health < (initial(health) * 0.5) ? "_warn" : "_passive"]")
SSminimaps.add_marker(src, z, MINIMAP_FLAG_XENO, "core")

/obj/effect/alien/resin/special/pylon/core/process()
. = ..()
Expand Down
Binary file modified icons/ui_icons/map_blips.dmi
Binary file not shown.

0 comments on commit 465b4c5

Please sign in to comment.