Skip to content

Commit

Permalink
fixes tacmap display
Browse files Browse the repository at this point in the history
  • Loading branch information
silencer-pl committed Sep 18, 2024
1 parent 5c4640f commit a3ca621
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/controllers/subsystem/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ SUBSYSTEM_DEF(minimaps)
old_map = get_tacmap_data_png(faction)
current_svg = get_tacmap_data_svg(faction)

var/use_live_map = skillcheck(user, SKILL_LEADERSHIP, SKILL_LEAD_EXPERT) || is_xeno
var/use_live_map = skillcheck(user, SKILL_OVERWATCH, SKILL_OVERWATCH_TRAINED) || is_xeno

if(use_live_map && !map_holder)
var/level = SSmapping.levels_by_trait(targeted_ztrait)
Expand Down Expand Up @@ -802,9 +802,11 @@ SUBSYSTEM_DEF(minimaps)
data["canViewTacmap"] = is_xeno
data["canViewCanvas"] = (faction in FACTION_LIST_HUMANOID) || faction == XENO_HIVE_NORMAL

if(skillcheck(user, SKILL_OVERWATCH, SKILL_OVERWATCH_TRAINED) || faction == XENO_HIVE_NORMAL && isqueen(user))
data["canViewTacmap"] = TRUE

if(skillcheck(user, SKILL_LEADERSHIP, SKILL_LEAD_EXPERT) || faction == XENO_HIVE_NORMAL && isqueen(user))
data["canDraw"] = TRUE
data["canViewTacmap"] = TRUE

return data

Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@
var/datum/tacmap/map
var/minimap_type = MINIMAP_FLAG_USCM
var/faction = FACTION_MARINE
w_class = SIZE_SMALL

/obj/item/tacmap_view/Initialize()
. = ..()
Expand Down
1 change: 1 addition & 0 deletions code/modules/gear_presets/xenosurge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
SKILL_SPEC_WEAPONS = SKILL_SPEC_ALL,
SKILL_INTEL = SKILL_INTEL_EXPERT,
SKILL_ENDURANCE = SKILL_ENDURANCE_TRAINED,
SKILL_OVERWATCH = SKILL_OVERWATCH_TRAINED,
)

/datum/job/marine/pve/base
Expand Down

0 comments on commit a3ca621

Please sign in to comment.