sigurdfdragon
9423e47bab
Fixup [unstore_unit] Lua port
...
Restores check_passability default of yes.
Fixes 50a9a25ae7a84da43a0bcc80287a3a9c119adc22
2017-03-14 23:51:06 -04:00
Charles Dang
15f8ac3c80
Fixed error in [modify_side] shroud_data=
2017-03-14 11:52:20 +11:00
Celtic Minstrel
5437c89bc8
fixup! Address missing component error in [modify_ai] (GNA25558)
2017-03-12 20:32:52 -04:00
Celtic Minstrel
72f9a4f270
Fix [heal_unit] not defaulting to amount=full (GNA25586)
2017-03-12 15:18:57 -04:00
Celtic Minstrel
070e4b6f8c
Address missing component error in [modify_ai] (GNA25558)
2017-03-12 15:15:37 -04:00
Celtic Minstrel
d84a52dc45
Fix incorrect API table name in [animate_unit] (GNA25550)
2017-03-12 14:49:52 -04:00
Celtic Minstrel
df0a665571
Fix wrong function name in [modify_side] implementation
2017-03-10 16:15:40 -05:00
Celtic Minstrel
6fe8e65502
another fixup 6de1c9441f25
...
Missed a usage of the potentially-nil value
2017-03-10 16:13:29 -05:00
Celtic Minstrel
6de1c9441f
Fix some [modify_ai] isses (addresses GNA25558)
...
As far as I can tell, the most likely cause of the bug was that several
cases of [modify_ai]action=add were called with a path that lacked the final
empty braces at the end of the path.
This commit makes both the tag and the underlying Lua API calls explicitly
handle this case as if the final empty braces were, in fact, present.
2017-03-10 00:12:11 -05:00
Celtic Minstrel
7488d6094c
Fix error in [heal_unit] (GNA25578)
...
The helper.get_child function was being called incorrectly.
2017-03-08 21:05:27 -05:00
Charles Dang
d89730410b
Improve ensure_config error messages
2017-03-01 11:58:33 +11:00
Celtic Minstrel
80cdac5b89
fixup! Improve error message when Lua config helper functions are not passed a config as the first argument
2017-02-28 19:15:57 -05:00
Celtic Minstrel
8319fee1f8
Improve error message when Lua config helper functions are not passed a config as the first argument
2017-02-28 19:03:41 -05:00
Celtic Minstrel
e107c52df4
Fix improper child_range call in [animate_unit]
2017-02-28 18:55:59 -05:00
Celtic Minstrel
b37d7233d5
[animate_unit] now defaults to hits=yes if missing
2017-02-28 16:21:16 -05:00
Celtic Minstrel
5cd756f1b0
fixup! Accept [place_shroud]/[remove_shroud] with just a side key
2017-02-28 01:15:24 -05:00
Celtic Minstrel
39d31219e5
Accept [place_shroud]/[remove_shroud] with just a side key
2017-02-28 00:45:34 -05:00
sigurdfdragon
05bc654e76
Fix a Lua error in [modify_side]
2017-02-28 12:29:18 +11:00
Celtic Minstrel
aa421ef698
Fix a Lua error in [animate_unit]
2017-02-27 13:12:21 -05:00
Charles Dang
f81392893d
Attempt to fix some errors reported by @singalen
2017-02-27 18:52:10 +11:00
Celtic Minstrel
8822dacd92
Merge branch 'wml_tag_porting'
2017-02-26 19:32:44 -05:00
sigurdfdragon
7a371c156b
WML: Have[store_side] use .__cfg from wesnoth.sides
2017-02-17 16:54:37 -05:00
pentarctagon
420a9fa7c0
Fix the unit portrait being displayed with only second_image is provided
2017-01-07 16:12:24 -06:00
Celtic Minstrel
010acd870d
Properly port [animate_unit] to Lua
2016-12-11 18:08:08 -05:00
Celtic Minstrel
c58e2d0095
wesnoth.scroll_to_tile can now skip if onscreen
2016-12-11 18:07:46 -05:00
Celtic Minstrel
bf9581cce4
Properly port [heal_unit] to Lua
2016-12-11 18:07:44 -05:00
Celtic Minstrel
37368c3654
Properly port [modify_ai] to Lua
2016-12-11 18:07:40 -05:00
Celtic Minstrel
e0d07e854e
Properly port [modify_side] to Lua
2016-12-11 18:07:36 -05:00
Celtic Minstrel
5fdb73b92f
Fix an error in [for] if step not specified
2016-12-11 18:06:51 -05:00
gfgtdf
a53090d648
wml cleanups, add terrain= attribute to [random_placement] loc
...
replacing some [while] with [repeat] or [random_placement]
Adding terrain= attribute to the variable generated by [random_placement] this mkaes it easier to use [random_placement] as a replacement for [store_locations] + [while] since [store_locations] also generates the [terrain] attribute:
2016-12-10 14:07:13 +01:00
Celtic Minstrel
1e2d6b6586
Add color= to [floating_text]
2016-11-27 12:36:19 -05:00
ln-zookeeper
63b5ac21fd
Undeprecate [event]remove=
2016-11-13 20:03:07 +02:00
Celtic Minstrel
35a581c9e7
Deprecate [event]remove=
...
[ci skip]
2016-11-13 12:31:06 -05:00
Celtic Minstrel
26a1eb34e0
Lua mapgen bugfixes: size/jagged ignored for chamber
...
And wrong function name in scenario generation.
2016-10-31 18:23:50 -04:00
Celtic Minstrel
2dee1e5f96
Lua Cave Mapgen: Use stable iteration of location sets
2016-10-27 14:20:42 -04:00
Celtic Minstrel
0166235d99
Lua Cave Mapgen: Support flip_xy transform
2016-10-27 14:20:31 -04:00
Celtic Minstrel
495a5c681f
Lua Cave Mapgen: Support scenario generation
...
The syntax is mostly the same as the old cave generator - a [scenario]
tag for general scenario data, and an [items] subtag of [chamber] for
chamber-specific data. However, the generator assumes that map locations
(from [item_location]) will be used and thus does not support
same_location_as_previous=yes in moveto events within [items].
2016-10-27 14:20:26 -04:00
Celtic Minstrel
510dfd65df
Lua Cave Mapgen: Support random chance of flipping the map
...
This has a similar effect to the flipx_chance and flipy_chance in the old
cave generator, except only one flip will be applied.
2016-10-27 14:20:21 -04:00
Celtic Minstrel
7c715130d4
Lua Cave Mapgen: Support [chamber]chance=
...
The older cave generator supported it, so the new one should too.
2016-10-27 14:20:20 -04:00
Celtic Minstrel
46e31cb462
Refactor Lua cave map generator
...
This accomplishes two main things:
- Creates a mapgen_helper.lua module containing functions useful for Lua map generators
- Paves the way for allowing the cave generator to produce scenarios and accept user configuration
2016-10-27 14:20:18 -04:00
Celtic Minstrel
293151687c
Fix number-nil comparison in [for]
2016-10-26 15:15:47 -04:00
Elvish_Hunter
63ac16702d
[set_variable]: added support for abs=, root= and power= keys
...
root= currently supports only one value, "square" (returns the square root).
2016-10-26 20:20:05 +02:00
Gregory A Lundberg
36ab1f9a5c
wesnoth.show_message_dialog: Don't expose has_input flag to Lua
...
Adjustment of PR 841 (as PR #843 )
2016-10-26 00:51:38 -04:00
Gregory A Lundberg
a441fc97a2
Fix bug: Slow narrator (Partial 25186)
...
No need to deselect when it was already done.
While this is the fix for the specific complaint, it does not address the larger issue of [message] being generally slow.
2016-10-25 04:53:45 -05:00
Gregory A Lundberg
9d08723236
[text_input] Fix bug 25173
...
Added an internal flag to indicate [text_input] appeared so we no longer require label= to be present.
2016-10-24 21:58:26 -05:00
Gregory A Lundberg
edacf922fb
Lua upgrade: integer indices
...
As of version 5.3, Lua converts a number which as an integer value to add ".0" to the end.
Updating mainline to avoid the issue.
2016-10-21 23:09:51 -05:00
Gregory A Lundberg
fc6774289e
Upgrade deprecated Lua
...
loadstring was removed, load does the same thing.
atan2 was remvoed, atan works instead
2016-10-17 10:34:43 -05:00
Celtic Minstrel
79647ff9d9
helper.lua: set __metatable field to guard against external access to metatables
2016-10-10 17:41:23 -04:00
gfgtdf
c90f598c48
use wesnoth.fire_event instead of wesnoth.fire_event_by_name
2016-10-09 19:58:11 +02:00
Pentarctagon
9df77488e3
Update message.lua
2016-10-01 14:28:50 -05:00