Celtic Minstrel
ff6894cee8
Lua API: Add a wesnoth.type() function
...
This checks both the Lua type and the metatable type to return a single unified result.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
e9465fa03e
Lua API: Add alternative version of map function to be used on arrays
2021-09-04 22:20:28 -04:00
Celtic Minstrel
b22c3b595c
Lua API: Fix functional.map returning the wrong answer if used on a table that contains numeric keys but is not strictly an array
2021-09-04 22:20:28 -04:00
Celtic Minstrel
bedc25fb56
Lua API: location_set:to_pairs now returns named tuples
2021-09-04 22:20:28 -04:00
Celtic Minstrel
35fce3fa3b
Lua API: Fix an error in the terrain hex API
...
Attempting to access a non-string key was an error.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
4837452dd7
Lua API: Add new location_set function to convert to or from a Lua map
...
This enables a location set to be passed to map functions in the functional module.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
440dbbd0ad
Lua API: The value function is now optional in functional.choose[_map]
...
By default, the functions now use the value taken directly from the map or array.
In addition, if a string or other non-functional value is passed, it's used as a key on the value.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
2c040ecaa7
Lua: Fix console pretty-print output not showing zero or negative keys in tables
2021-09-04 22:20:28 -04:00
Celtic Minstrel
9ad9833789
AI: Support [unit][ai][candidate_action]
...
This is essentially a syntax sugar for adding a candidate action filtered to only run for that single unit.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
880ef29075
AI: Support [unit][ai][micro_ai]
2021-09-04 22:20:28 -04:00
Celtic Minstrel
477a871c21
AI: Support [side][ai][micro_ai]
...
Closes #5910
2021-09-04 22:20:28 -04:00
Celtic Minstrel
9fdaea5893
AI: Fix error in stationed_guardian
2021-09-04 22:20:28 -04:00
Celtic Minstrel
59c9be1238
Schema: Add [candidate_action][filter_own]
2021-09-04 22:20:28 -04:00
Pentarctagon
5431810b62
Also re-enable WC on the master branch.
2021-09-02 14:52:56 -05:00
nemaara
ef0da66ec9
SotBE S13: rebalance scenario
2021-09-02 02:52:10 -04:00
Pentarctagon
545e5ffa29
Fixup WC schema validation failures.
2021-09-01 19:41:53 -05:00
mattsc
b73078884c
Messenger MAI: fix bug of own units blocking waypoint
...
ignore_own_units=true was accidentally dropped when adding [avoid] tag functionality to the Micro AI in a60736b6c7
2021-09-01 08:49:54 -07:00
Steve Cotton
551357f48b
Fix an off-by-one in mapgen's x and y filters, and add unit tests
...
Fixes the currently suspected root cause of #5108 , but requires further testing
to confirm that it fixes that issue.
Closes #6501 (the question of how to test the mapgen filter).
(cherry picked from commit 30f50bac681fda1566f5cee5aad7be6b65cb0fdb)
2021-09-01 15:48:32 +02:00
Tahsin Jahin Khalid
19b38fe249
[world conquest] [master] [lua] Check for wc2_scenario value before executing wc2_start_units function ( #6052 )
...
What this does is just checks the value of wc2_scenario before executing the function, and executes it for the first scenario only as intended.
2021-08-31 10:36:19 -05:00
Steve Cotton
6ad33af556
UtBS S02: Don't move Nym if she's already adjacent to the bottle
...
(cherry picked from commit 8919c2e9482b6068db3f16b708628d7c5ba89ecd)
2021-08-26 14:21:13 +02:00
Steve Cotton
6b6eb8a35b
WC: End the campaign at the end of the final scenario
...
Fixes the campaign part of #5891 .
(cherry picked from commit 9d32c7703577e9afa86e75e4e1f3b4646a3ec17a)
2021-08-24 10:43:19 +02:00
Celtic Minstrel
9daa10a9f2
Lua: Fix deprecated end_text references in core
2021-08-23 09:22:08 -04:00
kabachuha
536d6a226c
HttT: add gendered variants to item pickup prompts
...
Should help to address the issue with gendered verb forms or noun cases in some languages as described in #4436 . This reuses the same preexisting mechanism as in the latter part of httt_utils.cfg.
2021-08-21 13:11:47 +03:00
Tahsin Jahin Khalid
1dd447ce5d
[world conquest] replaced khalifate unit types with dunefolk unit types
...
I have also removed one mention of "Dune Piercer", which is non-existent unit, and substituted it with "Dune Rider".
2021-08-17 17:19:39 -05:00
kabachuha
959f534d19
Update Russian translation credits
2021-08-17 22:41:32 +03:00
kabachuha
e7f3899541
Updated my (kabachuha's) entry in the credits
2021-08-17 22:38:22 +03:00
Hejnewar
5a316bc5ca
Update Polish translation credits
2021-08-17 16:03:56 +02:00
Steve Cotton
1d8225d6b6
UtBS S09: Reveal the boss of the scenario at the end of part 1
...
This foreshadows that the player will need to attack the north-west after
defeating the north-east enemy, which is a bit fairer to anyone playing this
scenario for the first time.
Removes a now-unused string (Darius' pre-sacrifice speech). There are no new
strings here, the others are just being moved around.
For clearing shroud, change to using radius= because clearing a circle looks
better than clearing a square.
There's no significance to whether the new plan is "Plan B" or "Plan C" - back
in Wesnoth 1.10 it seems to have been dependent on whether all the merfolk had
been rescued.
Fixes issue #5540 about Hekuba spawning on a water hex.
(cherry picked from commit 25163c06a258b2a9f4627a1345a83f52447165dd)
2021-08-17 15:32:27 +02:00
Tahsin Jahin Khalid
d19c137d65
[world conquest] World Conquest Era is only available for the WC campaign
...
Until a proper solution is found for #5228 , this will have to do. It suppresses the appearance of the era in the era selection list for other scenarios.
Hmm, I guess the [campaign] tag should support the allow_era= key in future but for the moment, this will do.
2021-08-16 23:05:18 -05:00
Charles Dang
6ca865c8c2
Addon Manager: refined details section design
2021-08-16 17:16:01 -04:00
Charles Dang
95893489f2
GUI2: added default_italic label and scroll_label definitions
...
This is not optimal, but I'll implement a better way of handling formatting later.
2021-08-16 17:15:31 -04:00
Wedge009
89a5319006
Resolve #6019 - allied side not triggering failure condition when sighted
2021-08-16 20:00:24 +10:00
Steve Cotton
18a234594a
Remove a leading space from the Silver Mage's [special_note]
...
The strings in special-notes.cfg don't have a leading space,
and this one causes a warning in poedit.
2021-08-16 11:02:24 +02:00
Pentarctagon
cbd0d6bd9a
Add help information for the :benchmark command.
2021-08-12 00:52:34 -05:00
nemaara
03f97be0c2
TSG S8b: reduce difficulty
2021-08-12 01:29:23 -04:00
Pentarctagon
31fc9dfe44
Remove duplicate schema attributes.
2021-08-12 00:23:26 -05:00
Pentarctagon
6d8042b028
Schema update for [era].
2021-08-11 21:56:46 -05:00
Tahsin Jahin Khalid
1b267691f5
[world conquest] replace deprecated ^Uf and Uft with ^Tf and Tt part-2
2021-08-11 13:08:39 -05:00
Tahsin Jahin Khalid
391829dbeb
[world conquest] replace deprecated ^Uf and Uft with ^Tf and Tt respectively
2021-08-11 13:08:39 -05:00
Charles Dang
465a5b44b1
Fixup schema
2021-08-09 01:07:47 -04:00
Charles Dang
ca77f7e3e8
GUI2/Faction Select: use an drawing widget for the leader display
2021-08-09 00:58:08 -04:00
Charles Dang
3d87478a29
GUI2: add resize_mode=scale_sharp for [image] shapes
2021-08-09 00:45:23 -04:00
Steve Cotton
62a8bad97c
Allow the campaign selection to be bigger on HDPI screens
...
This doesn't scale the campaign image (and the campaign images are generally
350x350 images anyway), so it looks a bit wrong, but it's a lot more useable
on HDPI than putting a 1050x750 limit on a treeview with a text panel.
2021-08-08 19:59:42 +02:00
Elvish_Hunter
4fed167032
wmllint: added automatic update of four terrain macros
...
Fixes #6009
2021-08-06 20:50:07 +02:00
Steve Cotton
25052e967e
Tutorial S01: HDPI support
...
Remove the maximum size for the character-select dialog, the window will
automatically choose the minimum size that fits the text.
Extend the map 1 hex south. This means that, if the full map fits on screen,
the horizontal center of the map (where the print statements appear) is between
the keep and the south village, thus their labels don't overlap the print
statements.
2021-08-02 08:16:35 +02:00
Charles Dang
b71fbc5946
MP Staging/Join Game: tweak button areas
2021-08-01 02:58:04 -04:00
Pentarctagon
858f8b4248
Missed some deprecated fungus on map edges.
2021-07-31 18:46:47 -05:00
kabachuha
c0981406d8
Fixed boars' attack descriptions being started with capital letters
...
Attack descriptions start with a lowercase letter in mainline Wesnoth. Should be backported to 1.16.1 with #5973 after the string freeze ends.
2021-07-31 23:19:09 +03:00
Tahsin Jahin Khalid
96b86d6aae
[world conquest] [master/1.17] add credits, campaign icon(s) and image. ( #5959 )
2021-07-31 12:15:52 -05:00
Elvish_Hunter
80900fdc1a
wmllint: removed check for spaces in e-mail addresses
2021-07-31 17:47:45 +02:00