Skip to content

Commit

Permalink
Tacmap access for main platoon (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doubleumc authored Sep 30, 2024
1 parent 5d62427 commit cf4a809
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions code/controllers/subsystem/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ SUBSYSTEM_DEF(minimaps)
qdel(svg_store_overlay)
debug_log("SVG coordinates for [faction] are not implemented!")

#define can_draw(faction, user) ((faction == FACTION_MARINE && skillcheck(user, SKILL_LEADERSHIP, SKILL_LEAD_EXPERT)) || (faction == XENO_HIVE_NORMAL && isqueen(user)))
/datum/tacmap/drawing/proc/can_draw(faction, mob/user)
var/datum/squad/main_squad_path = MAIN_SHIP_PLATOON
return ((faction == main_squad_path::faction && skillcheck(user, SKILL_LEADERSHIP, SKILL_LEAD_EXPERT)) || (faction == XENO_HIVE_NORMAL && isqueen(user)))

/datum/controller/subsystem/minimaps/proc/fetch_tacmap_datum(zlevel, flags)
var/hash = "[zlevel]-[flags]"
Expand Down Expand Up @@ -1071,4 +1073,3 @@ SUBSYSTEM_DEF(minimaps)

#undef CANVAS_COOLDOWN_TIME
#undef FLATTEN_MAP_COOLDOWN_TIME
#undef can_draw
3 changes: 2 additions & 1 deletion code/modules/cm_marines/overwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
/obj/structure/machinery/computer/overwatch/Initialize()
. = ..()

if (faction == FACTION_MARINE)
var/datum/squad/main_squad_path = MAIN_SHIP_PLATOON
if (faction == main_squad_path::faction)
tacmap = new /datum/tacmap/drawing(src, minimap_type)
else
tacmap = new(src, minimap_type) // Non-drawing version
Expand Down

0 comments on commit cf4a809

Please sign in to comment.