Skip to content

Commit

Permalink
The heretic living heart now uses appearance cloning instead of getFl…
Browse files Browse the repository at this point in the history
…atIcon (#3833)
  • Loading branch information
Absolucy authored Oct 18, 2024
1 parent f1da3af commit 96d74f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
return FALSE
var/datum/weakref/target_ref = WEAKREF(target_mind)
LAZYOR(all_sac_targets, target_ref)
LAZYSET(current_sac_targets, target_ref, getFlatIcon(target_body, defdir = SOUTH))
LAZYSET(current_sac_targets, target_ref, TRUE)
return TRUE

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
continue
var/sac_name = trimtext(target_mind.name || living_target.real_name || living_target.name)
living_targets[sac_name] = living_target
targets_to_choose[sac_name] = heretic_datum.current_sac_targets[target_ref]
var/mutable_appearance/target_appearance = new
target_appearance.appearance = living_target.appearance
target_appearance.setDir(SOUTH)
target_appearance.pixel_x = 0
target_appearance.pixel_y = 0
target_appearance.pixel_z = 0
targets_to_choose[sac_name] = target_appearance

// If we don't have a last tracked name, open a radial to set one.
// If we DO have a last tracked name, we skip the radial if they right click the action.
Expand Down

0 comments on commit 96d74f7

Please sign in to comment.