diff --git a/code/modules/defenses/planted_flag.dm b/code/modules/defenses/planted_flag.dm index 68ebeda8a9d9..9bf62725fa55 100644 --- a/code/modules/defenses/planted_flag.dm +++ b/code/modules/defenses/planted_flag.dm @@ -12,6 +12,7 @@ var/buff_intensity = PLANTED_FLAG_BUFF health = 200 health_max = 200 + var/alternative_icon = 'icons/obj/structures/machinery/defenses/planted_flag_pride.dmi' can_be_near_defense = TRUE @@ -23,6 +24,12 @@ SENTRY_CATEGORY_IFF = FACTION_MARINE, ) +/obj/structure/machinery/defenses/planted_flag/proc/toggle_icon() + if(icon == 'icons/obj/structures/machinery/defenses/planted_flag.dmi') + icon = alternative_icon + else + icon = 'icons/obj/structures/machinery/defenses/planted_flag.dmi' + update_icon() /obj/structure/machinery/defenses/planted_flag/Initialize() . = ..() @@ -91,6 +98,12 @@ H.activate_order_buff(COMMAND_ORDER_HOLD, buff_intensity, 1.5 SECONDS) H.activate_order_buff(COMMAND_ORDER_FOCUS, buff_intensity, 1.5 SECONDS) +/obj/structure/machinery/defenses/planted_flag/attackby(obj/item/W, mob/user) + if (HAS_TRAIT(W, TRAIT_TOOL_WIRECUTTERS)) + toggle_icon() + return TRUE + return ..() + /obj/structure/machinery/defenses/planted_flag/range name = "extended JIMA planted flag" health = 150 diff --git a/icons/obj/structures/machinery/defenses/planted_flag_pride.dmi b/icons/obj/structures/machinery/defenses/planted_flag_pride.dmi new file mode 100644 index 000000000000..72c54655435e Binary files /dev/null and b/icons/obj/structures/machinery/defenses/planted_flag_pride.dmi differ