Commit graph

29838 commits

Author SHA1 Message Date
Pentarctagon
a2993884cd
Add berserk weapon special abilities tests (#8973)
Changes:
* CHECK_STRIKES macro now takes a comma-delimited list of strike counts for when units have a different number of strikes for different weapons, and updates the existing usage in the attacks tests
* Fixed a typo in the attacks_zero test
* Adds tests for berserk as a weapon special ability.

Berserk's handling differs from attacks as a weapon special ability:
* A value less than 1 is treated as effectively infinite rounds of combat (undocumented)
* The cumulative attribute is handled differently - in some cases it sums the values instead of using the highest single value whereas for attacks it always uses the highest single value

Also now exclude data/tests/ from scons pot-update since it was hitting the argument limit for number of arguments to a script.
2024-06-15 20:20:54 -05:00
Gunter Labes
944ed026a2 Use same default id in [remove_unit_overlay] as [unit_overlay] 2024-06-13 18:02:05 +02:00
Gunter Labes
28a8959854 Fix "span" regex
This disallows matching "0-11-2" and "1," for example. It also avoids an exponential backtracking issue which could make this regex very slow.
2024-06-12 19:52:50 +02:00
Dalas121
59ccd7ce8a
EI S10: add message about Owaec being able to recruit (#8987)
Owaec has a crown but little other indicator that he's a leader, and this scenario requires him to be used to recruit. Make it more obvious to the player.
2024-06-10 10:30:36 -05:00
Dalas121
6bd7832c61
EI items: add [filter_second] to Sentinel Shield and set delay=0 (#8984)
Delay=0 fixes an annoying animation issue, as the default is delay=500.
2024-06-09 21:10:53 -05:00
Dalas121
e1fa71cf16
EI S13: fix gaoler rebuild breaking "free prisoner" events (#8980)
Formerly, EI S13 uses various Deathblades' max-moves status instead of [filter_second] for some reason. This breaks when deathblades get rebuild, which in the bug report was caused by the sentinel shield. Use [filter_second] instead.
2024-06-09 21:10:26 -05:00
Dalas121
8efcb80685
EI S11: drop equippable items when imprisoned (#8982)
This is thematic, and also prevents cheese with shield+dacyn and baneblade+gate
2024-06-09 21:09:58 -05:00
Dalas121
43d6d87939
EI S10, S11, S12: Dacyn difficulty tweaks (#8976)
Resolves #8969

In EI S10, Dacyn picks up a cursed amulet and his HP drops to 1. In EI S11, Dacyn remains on very low HP, and is surrounded by orcs. There's a convenient ford hex he can hide on and be protected, but several players did not notice this hex and complained about difficulty.

In S10, this commit also drops his XP to 0. 1) showing that the amulet interferes with his MoL-ing, and 2) preventing the player from deliberately AMLA-ing Dacyn in the next scenario (partially a difficulty issue, but mostly it's bad to punish blind playthroughs / reward foreknowledge).

In S11, this commit adds a gold pile on Easy/Normal hinting towards the hex, while on Easy Dacyn's HP is fully restored. Hard is unaffected.

In S12, this commit restores Dacyn's HP on Easy (since it would be odd if he had full HP S11 but low HP S12).
2024-06-09 21:09:17 -05:00
Dalas121
6da672b6e1
EI S09: fix Grug telling Gweddry he can recruit the wild ogres after having already done so (#8981) 2024-06-09 21:08:51 -05:00
Dalas121
81a1ef260d
EI S10: reduce difficulty on Easy/Normal (#8956)
https://www.reddit.com/r/wesnoth/comments/1d6a3e7/eastern_invasion_is_much_better_but_still_bad/

EI's S10 is overly hard on Normal, and especially on Easy (which is intended to be a very accessible difficulty). This PR increases the available gold and adds several villages, which aid in both defense and upkeep. This PR also drastically reduces the number of orcs on lower difficulties.

We also move Owaec to his keep to help imply his ability to recruit, and remove the related just-added [note] string to avoid violating 1.18.1 string freeze.
2024-06-09 10:29:45 -05:00
Steve Cotton
9cc0b15fbc Add a unit test for a weapon-special activating mid-attack
A weapon with poison, which does extra damage to poisoned opponents.
This tests that the weapon-special's filter is checked on each strike,
instead of being tested once and then cached during the battle.

(cherry picked from commit 55aa8b44cf)
2024-06-08 22:08:28 +02:00
Severin Glöckner
c2fbb745f7 terrain2wiki tool: link to images on stable 1.18 branch 2024-06-08 21:18:03 +02:00
Severin Glöckner
564c96a7e9 terrain2wiki tool: python 3.12 compatibility 2024-06-08 20:56:21 +02:00
newfrenchy83
1809af8cdf
Modify 'apply_to' in an ability filter to do an inclusion check for resistance abilities
Instead of needing to contain the exact string from the ability, 'apply_to' in the filter is now taken as a comma-separated list, where all elements need to be present in the ability.
For example if we filter for apply_to=fire,arcane given an ability [resistance]apply_to=arcane, fire, cold, it will match.
For an ability [resistance]apply_to=arcane, impact, cold, this will not match because 'fire' is missing.
2024-06-07 18:08:43 +02:00
Subhraman Sarkar
43f5644e36
Rich Text Label widget for Help Browser GUI2 port (#8655)
A rich text label widget that can show text marked up with help markup.
Also includes the GUI Test Window, accessible in the title screen after launching wesnoth using --clock option. It can be used as dialog template/example or as a place to test GUI2 code.
2024-06-06 16:33:37 +05:30
newfrenchy83
9dd2d5d94b
Use type_adv_tree in some filters to support addons adding advancements to existing unit types (#8895) 2024-06-05 11:49:33 +02:00
Dalas121
ebbe03dc6c
EI: use fancy script for "Part II" "Part III" storytext (#8941)
In add-on form, EI used images to display "Part II" and "Part III". For translation reasons this got replaced with ugly title_text when the add-on went mainline.

This PR once again makes the "Part II" "Part III" storytext more fancy, while maintaining translatability.
2024-06-04 20:03:40 -05:00
Dalas121
f442e09e05
EI S10: specify that Owaec can recruit (#8950)
https://www.reddit.com/r/wesnoth/comments/1d6a3e7/eastern_invasion_is_much_better_but_still_bad/?rdt=58522

Owaec has a leader icon, but it's not made explicit that he can recruit units. In most scenarios that doesn't matter, but in S10 he becomes isolated from Gweddry and must recruit to survive.

Note that there's already a '[show_objectives][/show_objectives]' when 'orcs_attacking' is set.
2024-06-04 20:01:36 -05:00
Gunter Labes
f2d22d6364
Fix indentation 2024-06-04 23:15:49 +02:00
Gunter Labes
f4e8635723 Implement table sorting without tablesorter.js
This allows getting rid of a bunch of dependencies for minimal own code.
2024-06-03 17:08:33 +02:00
Steve Cotton
d7542c5ec4 Fix the whitespace error 2024-06-02 15:15:22 +02:00
Dalas121
28f93b4b8d
EI: use "bonus objective" instead of "optional objective" (#8947)
"optional" may imply that the scenario will be completed once this objective is finished, which is not accurate for these scenarios.
2024-06-01 17:57:19 -05:00
Dalas121
e293e9874d
EI S06b: clarify bonus objectives
https://forums.wesnoth.org/viewtopic.php?p=690528#p690528

Old verbiage suggested that the scenario would be won as soon as you moved any unit next to Yannic, and didn't give any indication that he'd need to be protected.
2024-06-01 17:49:46 -05:00
Nils Kneuper
198423debb updated Chinese (Simplified) translation 2024-06-01 14:35:21 +02:00
Severin Glöckner
049706efda Add [part]text_alignment= to schema 2024-05-31 19:07:13 -04:00
Wedge009
858df2d491 SoF S6: Apply @doofus-01's proposal to remove reference to finding Alanin when he is already present among the dwarves.
Resolves #8311.

[ci skip]
2024-05-30 22:37:49 -05:00
Wedge009
d3624f4df4 HttT tip: Change Delfador's quote date to the start of HttT, as requested by @Konrad22.
There's no particular reason why Delfador should say this during HttT, but perhaps it will make the connection to the campaign clearer.

Closes #8365.

[ci skip]
2024-05-30 22:37:32 -05:00
Subhraman Sarkar
5d06a8f463 putting into test textdomain so schema CI check can suceed 2024-05-27 19:41:31 +05:30
Wedge009
e3aeab3f27 Game version dialogue: Don't mark links for translation.
[ci skip]
2024-05-26 21:27:34 -04:00
Charles Dang
78620c7d61 GUI2/Addon Manager: make addon id more prominent, debug-only
It wasn't visible enough for people for whom it was useful, and too visible for people for whom it was not.
2024-05-26 18:18:11 -04:00
pentarctagon
279c7daa33 1.19.0+dev 2024-05-26 15:16:01 -05:00
pentarctagon
d39e42b672 1.19.0 2024-05-26 15:13:59 -05:00
pentarctagon
397779f9dd pot-update and regenerate doc files 2024-05-26 15:10:25 -05:00
Jonathan-Kelly
e47a012623 Mudcrawlers better in swamp, worse in buildings
Resolves #8823
2024-05-26 12:17:25 -05:00
Jonathan-Kelly
c45d94e0f7
WoF S8: clarify objective notes (#8906) 2024-05-26 08:25:15 -04:00
newfrenchy83
9fc5887ae9 'value' attribute in [experimental_filter_ability(_active)] can have 'default' value 2024-05-26 13:48:45 +02:00
Subhraman Sarkar
da7e57422e
make sure bullets in about dialog use a font that has those character (#8921) 2024-05-26 11:29:07 +05:30
Steve Cotton
c2072f201d gui/language_selection: Rephrase text about becoming a translator
The link with details about individual compaigns is useful to players,
even if they aren't looking to become translators. So move it upwards.

The text about first-time players seemed confusing to me, as the choice
is already limited to languages that the player can read. Reworded it,
but after discussion in the PR, neither version was better than just
removing it.
2024-05-26 04:09:34 +02:00
Charles Dang
6c885c5db4 GUI2/Story Screen: only use area between images for Skip text 2024-05-25 02:45:42 -04:00
Charles Dang
310919b464 Fixup b548e7348d 2024-05-25 02:44:26 -04:00
Charles Dang
fe71878bfc LoW S1: fixed typo in image path 2024-05-25 01:20:27 -04:00
Charles Dang
ebc3953e8b GUI2/Unit Create: increased list padding 2024-05-25 01:14:28 -04:00
Charles Dang
b548e7348d GUI2/Preferences: increased padding in hotkeys list 2024-05-25 01:14:15 -04:00
Charles Dang
91287d0fbf GUI2/Preferences: bumped max height slightly 2024-05-25 01:13:48 -04:00
Charles Dang
5e3a86f7ab GUI2/Game Load: refined design for the umpteenth time 2024-05-25 00:57:27 -04:00
Charles Dang
7e2a99dc20 GUI2/Listbox: enabled view-only mode
Currently for the vertical listbox only, since it does have some quirks. Removes the assert in the "show" policy checking if the callback is null. It won't be for the listbox, but doesn't really matter since it's not used.
2024-05-25 00:54:29 -04:00
Charles Dang
fb78528f2c GUI2/Story Viewer: fixed controls moving with long story sections 2024-05-25 00:48:20 -04:00
Charles Dang
4cb9df8e6c GUI2/Story Viewer: refine recent design updates, fix some layout issues 2024-05-25 00:26:11 -04:00
Dalas121
e2f893c2ea
EI S17b: fix Mal-Ravanal pausing to capture villages
Many turns into EI S17b, a pre-existing lich changes sides and transforms into Mal-Ravanal.

Before this commit, this process would un-capture any villages previously captured by that side, causing Mal-Ravanal to waste turns retaking them.
2024-05-24 20:15:44 -05:00
Dalas121
2027057689
EI S06b: weaken eastern leader guards on lower difficulty
To complete EI's S06b, the player must fight through a necromancer and his bodyguards. Prior to this commit, the necromancer's bodyguards did not vary by difficulty, making Easy disproportionately difficult.

Other leaders do not need to be fought directly to win. In addition, this is an optional mission labeled as more difficult. Therefore, I haven't adjusted other leaders' guards' difficulty scaling.

https://forums.wesnoth.org/viewtopic.php?t=57915
2024-05-24 20:12:12 -05:00