Wedge009
a5a7b46685
Replace an instance of wrong quote orientation.
...
[ci skip]
2025-01-16 10:44:39 +11:00
Wedge009
a5a84c47be
EI: Remove unused schedule macro, closes #9748 .
...
[ci skip]
2025-01-16 10:22:54 +11:00
Dalas121
c77c2077a6
amlas resource, use translatable unit name for help message
2025-01-15 15:57:57 -06:00
Dalas121
8a579ca087
stronger AMLAs resource - allow undo
2025-01-15 15:06:11 -06:00
Celtic Minstrel
1e0bab4a04
Address review comment about API function parameter name
2025-01-15 09:46:42 -05:00
Celtic Minstrel
57c74d41b3
Add --plugin option to the Xcode scheme
2025-01-15 09:46:42 -05:00
Celtic Minstrel
f93a2ca6d6
Lua API: Delete the --script command-line option
...
This is basically superceded by --plugin
Though it's supposed to be a script that can control the client, that capability doesn't actually exist in the implementation.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
13ef58ba87
Add a sample Lua plugin that starts TSG, plays one turn, and then exits.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
0bbc9941f9
Lua API: Add synced_command and end_turn actions to the Game plugin context
2025-01-15 09:46:42 -05:00
Celtic Minstrel
def4be6194
Lua API: Plugin execute functionality now supports named tuples in the closure
2025-01-15 09:46:42 -05:00
Celtic Minstrel
123e4eb0eb
Lua API: Some enhancements/fixes to named tuples.
...
* Make named tuples comparable with == and ~=
* Fix the possibility of the numeric and string keys becoming out-of-syn on assignment
* Fix non-existent numeric keys being treated like a string key
2025-01-15 09:46:42 -05:00
Celtic Minstrel
0946161816
Lua API: ai.get_suitable_keep now returns integers instead of real numbers
2025-01-15 09:46:42 -05:00
Celtic Minstrel
580935a50d
Lua API: Make wesnoth.game_config.debug writable in plugins
2025-01-15 09:46:42 -05:00
Celtic Minstrel
2fe080d968
Lua API: Plugins can now execute gamestate code once they are in the game context.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
f991c1ca0b
Add a debugging function that prints out the contents of the Lua stack
2025-01-15 09:46:42 -05:00
Celtic Minstrel
f9a0236210
Lua API: Correct __metatable for wesnoth.preferences
2025-01-15 09:46:42 -05:00
Celtic Minstrel
16d1af5ed3
Lua API: Fix some places that weren't handling strings correctly.
...
Lua strings can contain nulls. The affected places would truncate such strings.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
51b3e4cfcc
Lua API: Add a valid key to the plugin context and info tables
...
Previously the only way to tell they were valid would be a protected call on an existing member.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
8f1b611a44
mp_join_game should not be skippable
2025-01-15 09:46:42 -05:00
Celtic Minstrel
1809138479
Output the ID of the dialog being skipped in case it's not actually a leader select dialog
2025-01-15 09:46:42 -05:00
Celtic Minstrel
ef66ad5aae
Make enable_lua_ptr movable and non-copyable
2025-01-15 09:46:42 -05:00
Celtic Minstrel
e075700115
Update host.lua and join.lua in light of recent changes
...
* Use the wesnoth.plugin module
* Use .tag and .contents instead of [1] and [2]
* Remove superfluous parentheses on function calls
2025-01-15 09:46:42 -05:00
Celtic Minstrel
0f05094933
Lua API: Add a new plugin module with some useful functions for plugins
2025-01-15 09:46:42 -05:00
Celtic Minstrel
631365ba79
Lua API: The plugin events list is now a proper WML table, with the tags being named tuples
2025-01-15 09:46:42 -05:00
Celtic Minstrel
67681b5072
Lua API: Avoid looking up the requested scenario twice
2025-01-15 09:46:42 -05:00
Celtic Minstrel
a1f50d3ebe
Lua API: Enable plugins to play a campaign
...
This also fixes some issues that can prevent a plugin from working with the GUI (that is, only working in headless mode). Plugins should work in both headless and GUI mode.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
c456ff1df4
I don't really get it, but this fixes my build, so I'll go with it.
2025-01-15 09:46:42 -05:00
pentarctagon
bc36952e6f
fixup wrong values in set
2025-01-14 17:22:28 -06:00
Dalas121
a08d6f67f9
Improve Resources: stronger_amlas and resource_weather ( #9728 )
...
stronger_amlas: move from amlas.cfg to resources/AMLAs
stronger_amlas: Previously, use_stronger_amlas added extra AMLAs to units that match a certain filter. If units didn't match the filter when they were placed, but did later-on, they still wouldn't be eligible for AMLAs. Fix that here.
resource_weather: [terrain_graphics] cannot be assigned or modified mid-scenario, but can be filtered by ToD. To dynamically modify weather mid-scenario (such as in TSG), use these special "noweather" ToDs.
resource_weather: add wind
both: change textdomain to "wesnoth"
2025-01-14 14:41:03 -06:00
Pentarctagon
f61b7b77ec
Add additional functionality for the in-game add-ons manager ( #9693 )
...
When started with the command line argument --addon-info, the Info button is shown on the add-ons manager which then allows:
* querying the downloads by version of the currently selected add-on
* querying the count of total add-ons uploaded vs the count of add-ons using forum_auth
* deleting an add-on (requires being a member of the Site Administrators or Forum Administrators forum groups)
* hiding an add-on (requires being a member of the Site Administrators or Forum Administrators forum groups)
2025-01-14 09:35:46 -06:00
Gunter Labes
ad7a458250
Remove nonsensical comment
2025-01-14 09:38:21 +01:00
Gunter Labes
fbf43bcfc1
Typo fix
2025-01-14 09:36:58 +01:00
Wedge009
eac2730235
WoF Wyrm: Correct text domain, resolves #9740 .
...
[ci skip]
2025-01-14 09:15:54 +11:00
Tahsin Jahin Khalid
707135afa4
THoT: remove duplicate macro
2025-01-14 09:08:52 +11:00
Thewodoros
129fdf74e4
Replace "ken" with "can" in dwarf speech ( #9738 )
...
Use "ken" only for "know" or "see" meanings, not for "can" meaning.
2025-01-13 09:46:19 -06:00
Thewodoros
28920faad4
Replace mention of Ulrek with Relgorn ( #9736 )
...
Relgorn is Ulrek's son and helped humans more recently.
2025-01-13 09:45:39 -06:00
Thewodoros
55a701cc6e
Mention invasion force instead of just undead ( #9737 )
...
We fought undead most recently in S06a, but it was a rear garrison.
2025-01-13 09:44:55 -06:00
Subhraman Sarkar
d30b0e9bd1
location: use consistent reference (&) placement
...
a cosmetic change only.
2025-01-13 12:56:56 +05:30
Subhraman Sarkar
5b4f8f932f
Contributing guide: mention CodingStandards page.
2025-01-13 12:32:16 +05:30
Subhraman Sarkar
aa625dafef
canvas: fix semicolon in error message
2025-01-13 12:24:16 +05:30
Subhraman Sarkar
b077789251
canvas: improve error message in image_shape
...
the message now makes it obvious the 'name' key is faulty and covers the case where it is empty. Originally, it only notified that the formula was invalid.
2025-01-13 12:22:54 +05:30
Thewodoros
a49ccf0b3f
Don't show defeat message if we choose to restart
...
It feels odd in that case.
2025-01-12 19:30:03 -06:00
Thewodoros
85bdfe391b
Remove unused key from [endlevel]
...
When result is defeat, other keys are not used.
2025-01-12 19:30:03 -06:00
Thewodoros
a21b695a85
Fix bug with dwarf meeting event
...
It didn't disappear when either of them died.
2025-01-12 19:30:03 -06:00
Thewodoros
31fe9813cd
Don't start the task if Pelathsil is dead
...
The enemies should not be able to reach him that early, but just in
case.
2025-01-12 19:30:03 -06:00
Thewodoros
dfb14774c2
Replace Tath with Parthyn in po comments
...
It was Parthyn which the orcs attacked, Tath is where the necromancers
steal the book.
2025-01-12 19:30:03 -06:00
Thewodoros
79f102c641
Replace saurians with nagas in po comments
...
Mentions of saurians must be a leftover from earlier development.
2025-01-12 19:30:03 -06:00
Subhraman Sarkar
f4e0a7bd14
UtBS S1: make Kaleh's dialog a bit more emotional ( #9734 )
...
Adds a couple of exclaimation marks to better emphasize the shock.
2025-01-12 13:56:32 -06:00
Subhraman Sarkar
50fe386aa7
celes theme: listbox header definition
2025-01-12 14:09:31 +05:30
Charles Dang
35071f38d5
GUI2/Group: cleanup
2025-01-11 23:15:28 -05:00