Made the concentration event easier to translate
This commit is contained in:
parent
6b94154291
commit
f05897058a
1 changed files with 9 additions and 2 deletions
|
@ -355,7 +355,14 @@
|
|||
local path = wesnoth.find_path(delf, sceptre_x, sceptre_y, {ignore_units = true, viewing_side = 0})
|
||||
_ = wesnoth.textdomain 'wesnoth-httt'
|
||||
|
||||
local dirs = { _"west", _"north-west", _"north", _"north-east", _"east", _"south-east", _"south", _"south-west" }
|
||||
local dirs = { _"I sense the path to the sceptre is to the west of me.",
|
||||
_"I sense the path to the sceptre is to the north-west of me.",
|
||||
_"I sense the path to the sceptre is to the north of me.",
|
||||
_"I sense the path to the sceptre is to the north-east of me.",
|
||||
_"I sense the path to the sceptre is to the east of me.",
|
||||
_"I sense the path to the sceptre is to the south-east of me.",
|
||||
_"I sense the path to the sceptre is to the south of me.",
|
||||
_"I sense the path to the sceptre is to the south-west of me." }
|
||||
local goal = { x = path[6][1], y = path[6][2] }
|
||||
|
||||
-- Go to square geometry
|
||||
|
@ -365,7 +372,7 @@
|
|||
local angle = math.atan2( (goal_y_sq - delf_y_sq), (goal.x - delf.x) )
|
||||
angle = math.floor((angle / math.pi * 4 + 4.5) % 8 ) + 1
|
||||
|
||||
W.message{ speaker = 'Delfador', message= "I sense the path to the sceptre is to the " .. dirs[angle] .. " of me."}
|
||||
W.message{ speaker = 'Delfador', message= dirs[angle]}
|
||||
>>
|
||||
[/lua]
|
||||
[/event]
|
||||
|
|
Loading…
Add table
Reference in a new issue