Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wire in events for new core abilities
- Loading branch information
1 parent
b5b334b
commit b6e0dbf
Showing
3 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
local _ = wesnoth.textdomain "wesnoth" | ||
local old_unit_status = wesnoth.theme_items.unit_status | ||
|
||
function wesnoth.theme_items.unit_status() | ||
local u = wesnoth.get_displayed_unit() | ||
if not u then return {} end | ||
local s = old_unit_status() | ||
|
||
if u.status.stunned then | ||
table.insert(s, { "element", { image = "misc/stunned-status-icon.png", | ||
tooltip = _"stunned: This unit is stunned. It cannot enforce its Zone of Control." | ||
} } ) | ||
end | ||
|
||
return s | ||
end |