78402 Commits

Author SHA1 Message Date
mattsc
663a0ef8ec AI retreat_injured CA: fix bug in finding hexes next to healers
The CA was supposed to mark hexes next to healers as potential healing locations, but because of this bug that did not work.
2021-02-26 16:27:43 -08:00
mattsc
fe316aec3a Add new AI aspect retreat_enemy_weight 2021-02-26 13:57:13 -08:00
mattsc
903e03d68a AI retreat_injured CA: improve retreat threshold calculation
The main problem was that the previous calculation was based on the 'caution' aspect. While that is not technically wrong, caution is also used for other purposes and there are mainline (and presumably UMC) scenarios that use large values for caution. In those cases, units retreated that were barely injured. This, again, might even be desirable for some use cases, but it needs to be decoupled from the other uses of caution. Thus, the new 'retreat_factor' aspect is used now.

In addition, the calculation is now based on a unit's maximum hitpoints, rather than its level.
2021-02-26 06:49:37 -08:00
mattsc
efe5a4d497 Add new AI aspect retreat_factor 2021-02-25 20:25:16 -08:00
Celtic Minstrel
1ff1ada25c Don't refresh addon cache if running without addons
This allows WML unit tests to be successfully run locally even if you have a local addon that does not have an _info.cfg or _server.pbl.
2021-02-24 20:19:13 -05:00
Steve Cotton
c46a2171f2 Improve the Load dialog's UX when there are no save files or corrupted files
Re-add the popup that appears when "Load" is pressed on the title screen if
there are no files, but now check for files from previous versions too.

Improve handling of switching from a version with files to a version without
files, disabling buttons on the load dialog when there are no files in the
current directory. Versions with no files will still be shown in the drop-down.

This adds a todo about the error path at the start of evaluate_summary_string,
this path is reached by creating empty files in the save dir. The dialog's state
is reasonable, so it seemed a low priority and I don't want to introduce new
bugs by refactoring this path now.

Deleting all files now doesn't automatically close the dialog.
2021-02-24 21:18:48 +01:00
Pentarctagon
6c980d12dc Clear the list of scenario content before getting the next list of content.
Otherwise each scenario keeps appending additional and usually duplicate content being sent to the server.
2021-02-23 22:11:22 -06:00
Pentarctagon
387f4ae448 Don't return a replay URL for private games.
The URL wouldn't work anyway.
2021-02-23 22:11:22 -06:00
Charles Dang
cd2dd8dc7f
Merge pull request #5569 from mattsc/fix_addon_test_scenarios
Add [test] to list of tags with add-on id
2021-02-24 08:46:09 +11:00
mattsc
91115ba84e Add [test] to list of tags with add-on id
As of PR #4963, the engine ignores all global tags defined by add-ons that are not active, that is, that are not used in the current game.  Whether an add-on counts as active is determined based on a list of possible tags with add-on ids.  The [test] tag is not included in this list, resulting in test scenarios in add-ons not working any more.
2021-02-23 13:08:37 -08:00
mattsc
14285994f1 Unit tests: add missing macro undefs 2021-02-23 07:28:34 -08:00
Celtic Minstrel
1dca42ca0e
Fix [modify_side]reset_maps=true
I have no idea how this was missed...
2021-02-22 09:52:56 -05:00
Iris Morelle
9a5e33182f wc: Invest UI cleanup pass 1 2021-02-22 00:31:11 -03:00
Iris Morelle
cb53d30799 gui2/label: Add a normal-sized gold label definition 2021-02-22 00:30:28 -03:00
Iris Morelle
4e5eb49a4a wc: WoCopedia UI cleanup pass #1
Still a lot of work left to do, but this initial commit focuses on
bringing the UI layout on par with mainline standards.

Notable remaining layout issues:

 * Training pages don't have a proper caption.

 * The Items page (previously Artifacts, relabeled Items for consistency
   with the rest of the help text) has individual items grow the list
   horizontally out of the page's bounds, resulting in a horizontal
   scrollbar on the item list right now, or one on the whole window if
   anything is done to prevent the former. There is currently no simple
   way to fix this since labels in listboxes and treeviews grow
   unchecked, rendering `wrap = true` moot.

 * The Factions page seems to be designed to display a list of factions
   but this doesn't seem to be used or working right now?

 * The Settings page has some evidence of this having been user-made
   content. We probably want to do away with some of it in mainline.
   Maybe.

 * The Feedback page screams UMC all over. It is also a bit useless
   without gfgtdf around right now...

 * Lots of questionable English or UI language around still.

 * I don't like tree views.
2021-02-22 00:03:47 -03:00
Wedge009
6f571f3e44 Minor edit for grammar/clarity.
[ci skip]
2021-02-22 14:01:48 +11:00
Charles Dang
56364cc03c Removed trailing tabs and whitespaces from C++ source
[ci skip]

I ran the same command from 9b7b1751fdda.

Excludes:
* lua/
* spirit_po/
* modules/
2021-02-22 12:15:33 +11:00
Eric Gallager
b2baa10f96
Edit Scepter of Fire difficulty (#5524)
* Edit SoF difficulty

apply patches from https://github.com/cooljeanius/wesnoth_mods/tree/master/campaigns/Sceptre_Of_Fire
2021-02-21 18:15:45 -05:00
Celtic Minstrel
b613e09b2a
Squash unused parameter warning 2021-02-21 16:51:37 -05:00
nemaara
80f6db1f0d Add DM rebalance to changelog 2021-02-21 16:40:16 -05:00
nemaara
ed1ad2470b DM: rebalance pass 2021-02-21 16:39:12 -05:00
Celtic Minstrel
3226147630 Add gives_income key to SLF 2021-02-21 13:22:30 -05:00
Celtic Minstrel
8beb7b08fb Add optional uservalues count to custom Lua new operator 2021-02-21 13:15:37 -05:00
Steve Cotton
93de411d2f Fixup WC2 validation (combination of 41b2b0b with e47b759)
The combination of disabling and validating WC2 meant that the build failed,
so add another #def that will enable it for validation.
2021-02-21 18:34:40 +01:00
Martin Hrubý (hrubymar10)
0cb0f35dc1
Update Xcode project README.md 2021-02-21 16:31:09 +01:00
Martin Hrubý (hrubymar10)
1b12de98f2
Remove changelog from Xcode build and add link instead 2021-02-21 16:27:11 +01:00
Martin Hrubý (hrubymar10)
7ef9548fe0
Disable App Sandbox for Xcode Debug builds 2021-02-21 16:26:39 +01:00
Iris Morelle
962db2ebf6 Update changelog oops
[ci skip]
2021-02-21 02:51:36 -03:00
Celtic Minstrel
862668911a Split core.lua up by module to make things easier to find
Core is now a directory instead of a file. The Lua kernel automatically loads all files in that directory when it starts up.
2021-02-20 21:32:29 -05:00
Celtic Minstrel
fd95180b8a WC: Found one more invalid use of split 2021-02-20 20:06:49 -05:00
Celtic Minstrel
41b2b0b42b WC: Include in the CI schema validation
There may not be much to validate, but we may as well validate what's there.
2021-02-20 19:54:19 -05:00
Pentarctagon
b96f047d7c
1.15.10+dev. 2021-02-20 18:02:48 -06:00
Pentarctagon
ba580774f1
1.15.10. 1.15.10 2021-02-20 18:01:19 -06:00
Iris Morelle
624f7d1363 wc: Use mainline's "Close" string for the help system OK button 2021-02-20 19:53:37 -03:00
Celtic Minstrel
9e0914ebfa WC: A few more little fixes 2021-02-20 17:47:51 -05:00
Celtic Minstrel
3efe2973e8 WC: Minor improvements to pickup dialog
- Add some padding
- No need to say the key shortcuts
2021-02-20 17:47:51 -05:00
Celtic Minstrel
0cc39f985d Lua API: Also make sure the expanded form of context-free generators accepts translatable strings 2021-02-20 17:47:51 -05:00
Charles Dang
7206d0cf4b
Merge pull request #5565 from shikadiqueen/feature/menu-streamlining
hotkey: Streamline some menu action labels
2021-02-21 09:26:41 +11:00
Iris Morelle
b0e017f7f0 pot and documentation update 2021-02-20 18:47:30 -03:00
Celtic Minstrel
3e896ba1dd Fix Lua name generator API not accepting translatable strings 2021-02-20 16:47:19 -05:00
Celtic Minstrel
1cbd2b6ef7 WC: Fix broken use of map_split
One use-case of wc2_utils.split_to_set was different and not directly compatible with map_split
2021-02-20 16:47:19 -05:00
Celtic Minstrel
5bc101104a WC: Use the Markov Chain generator for names 2021-02-20 16:29:25 -05:00
Celtic Minstrel
6865cca0f1 I have no idea how that got mangled like that 2021-02-20 16:21:12 -05:00
Celtic Minstrel
0802779f9e Found a deprecated thing not in WC 2021-02-20 16:12:49 -05:00
Celtic Minstrel
22fe1e9b71 WC: Update a bunch of deprecated things 2021-02-20 16:12:49 -05:00
Celtic Minstrel
bb7483d456 Add a deprecated stub for math.pow 2021-02-20 16:12:48 -05:00
Celtic Minstrel
0b4297b0f8 Fix wesnoth.random returning a real number when called with arguments 2021-02-20 16:12:48 -05:00
Iris Morelle
ef1fbedb82 hotkey: Streamline some menu action labels
Something that people occasionally miss is that several hotkey actions
double as menu items throughout the UI. Menu items have this particular
quality to them that requires them to be as succinct as possible to make
their meaning apparent without requiring excessive reading and parsing
from users/players. Furthermore, in a UI like ours with large elements
everywhere,  we want to avoid excessively wordy elements that can become
ten times as long when translated into foreign languages.

Commit c42bf114249dcef5241327ca92214cf155ff89e8 replaced the Preferences
label with a unnecessarily longer version despite it being pretty
standard among most applications for it to be a single word (either
Preferences or Options or Settings). This commit reverts that.

Clear Chat and Errors (also from the aforementioned commit) is relabeled
Clear Chat rather than Clear Messages so it's clearer that it applies to
chat messages in particular and not anything else. On that note, the
fact that game diagnostics share real estate and infrastructure with
chat is really unfortunate but there's not much that can be done about
it at the moment. At least it is visually obvious that this is the case.
It's also rarely relevant (and most people won't think of entering
"error" into the hotkey filter before reporting the error somewhere).

View Chat Log is relabeled Chat Log since no other option deals with the
Chat *Log* in particular.

Scenario Objectives is relabeled Objectives because there really isn't
anything else that has objectives we can look at in the whole game.

Enter User Command is relabeled Enter Command so as to not sound
superfluous.

Additionally, the Quit to Main Menu action is relabeled just Quit to
Menu, which is closer to what the option actually does in MP games (quit
to lobby) without being inaccurate in either SP or MP (closes #2744).
2021-02-20 17:07:46 -03:00
Pentarctagon
40ff503470
Retroactively add WoV's removal to the changelog. 2021-02-20 14:06:11 -06:00
Pentarctagon
e47b75940f
Disable World Conquest pending removal or a maintainer stepping forward. 2021-02-20 13:29:14 -06:00