Rephrase a bit of unwieldy Lua that causes issues with my text editor
This commit is contained in:
parent
39033be9d3
commit
e131262080
1 changed files with 1 additions and 6 deletions
|
@ -3538,12 +3538,7 @@ unplagueable: $wml_unit.status.unplagueable"
|
|||
code=<<
|
||||
local args = ...
|
||||
local unit = wesnoth.get_unit(args.x1, args.y1)
|
||||
local raw_msg = "Unit statuses in LUA:\
|
||||
\
|
||||
not_living: %s\
|
||||
unpoisonable: %s\
|
||||
undrainable: %s\
|
||||
unplagueable: %s"
|
||||
local raw_msg = "Unit statuses in Lua:\n\nnot_living: %s\nunpoisonable: %s\nundrainable: %s\nunplagueable: %s"
|
||||
local msg = string.format(raw_msg, unit.status.not_living, unit.status.unpoisonable, unit.status.undrainable, unit.status.unplagueable)
|
||||
wesnoth.wml_actions.message({speaker = "narrator", message = msg})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue