29815 Commits

Author SHA1 Message Date
doofus-01
5fff9c5c3f
EI: Cleanup of urbanjungle terrain type
Cleans up the help browser and fixes #8497 (and makes the icon no longer pink).
2024-07-12 14:58:15 +02:00
Gothyoba
102e1b4629
[Units] update Wyvern Rider description (#9020) 2024-07-10 12:55:44 +06:00
Gunter Labes
d7da385586
WC: Remove bogus comment 2024-07-09 15:26:09 +02:00
Wedge009
aebfcf72a1 EI: Minor changes to item wording. Resolves #9070. 2024-07-09 12:37:49 +10:00
Wedge009
f793be4fa5 EI S10: Clarify Dacyn's self-sacrifice. Resolves #9066.
[ci skip]
2024-07-09 12:01:23 +10:00
pentarctagon
f0991ec9c1 remove use of the config directory
the credentials and lan config files will now use the userdata folder
2024-07-08 17:42:20 -05:00
Toom
35e405dde5 Pick Advance: remove irrelevant objects, closes #5707 2024-07-07 13:56:24 +02:00
Toom
1f0ffe0058 Pick Advance: merge moveto event into turn_refresh, closes #8954 2024-07-07 13:56:24 +02:00
Wedge009
c67d130507 SoF: Align masked dwarf portrait to the right, consistent with S9. Resolves #9008. 2024-07-06 11:44:32 +10:00
Subhraman Sarkar
4c1b1ebe20 reduce hardcoded extensions in python files, only instance at wmltool3.py 2024-07-05 09:05:26 +05:30
Steve Cotton
c930a7e476 Delete the wmltools3.Translation class
Appears to be unused, and is still Python2 code. To be Python3, these
lines need to change:

- f = file(fn)
+ f = open(fn, encoding="utf-8")

- gettext = f.read().decode("utf8")
+ gettext = f.read()

Even knowing how to make it work, it still doesn't seem useful to keep.

wmlunits uses html_output.Translation, but that's not this class. It's
a wrapper around Python's standard gettext library, in html_output.py.
2024-07-04 16:37:39 +02:00
Steve Cotton
de48a16034 Remove unused dawn.png image, update copyrights.csv
dawn.png was leftover from the Time of Day being shown with an overlay
image; 074e157400e04d16cdb2b77db5065537f35c9177 removed dusk.png and
night.png. The image itself should be a transparent blue hexagon, but
the alpha channel was corrupted, and so it appeared completely
transparent.

In copyrights.csv, make the capitalisation of Kitty's name consistent,
and attribute the orb-disengaged.png image.
2024-07-04 14:56:23 +02:00
Subhraman Sarkar
9496dd4edf add po hint 2024-07-04 02:31:47 +02:00
Subhraman Sarkar
b6e8142780 use correct font for tick character (#9055) 2024-07-04 02:31:47 +02:00
Steve Cotton
91f59a794b wmltools3: fix regexp compatibility with Python 3.12 2024-07-02 19:42:13 +02:00
Toom
081866af7b
Add unit_hits, unit_misses events
Added new events "unit hits/misses" to simplify creating events that use attacker+defender hits/misses (issue #7782)
2024-06-30 12:02:55 +02:00
Subhraman Sarkar
103b80ff01
Editor enhancements (#8903)
Map/Scenario Editor

* Rename Load Map to Load Map/Scenario (since it can load both), Edit Scenario to Edit Scenario Settings, Save Map to just Save.
* Rearrange menu order
* Add icon for the preferences menu item (used the preexisting settings.png icon)
* Open folder correctly at Add-on's scenario directory instead of editor/scenarios. (#8910)
* Show Save Scenario As only for Scenarios
* Use the settings.png icon for Preferences menu item
* Add functionality to "Loyal" checkbox (Unit tool -> Place unit -> Right click menu) (#8445)
* Show warning when maps are saved in scenarios folder or vice versa (#8911)
* Unit List moved to Units menu from File menu to reduce some pressure from the latter.
* Status Table menu item disabled since it does nothing. (Should be reenabled once the functionality has been added.)
* Improve reload functionality in Editor (F5). Reload happens directly from memory and no temp files are needed. Also, the undo/redo stacks will be preserved. (#9024)

Time Schedule Editor

* Browse buttons now set wesnoth style paths instead of just pasting the absolute path returned by the file dialog
* Change text boxes from inactive to uneditable.
* Code generation improvements
* Add copyright notice to tod_new_schedule
* Confirmation messages
* Preview buttons for image and sound files and new icons for the preview button (2 sets : preview image and preview sound)

Unit Type Editor
 * Confirmation messages
 * New icons for the preview button (2 sets : preview image and preview sound)

Add-on menu
 * Two new menu entries for (1) opening the Add-on selection dialog, (2) opening the folder corresponding to the Add-on
The open add-on folder option shows a GUI2 file dialog at the add-on's folder which can be used to open any file. If it is a loadable map/scenario it will be opened in the editor, otherwise the OS's default application for that file will be opened.

File Dialog
 * Redesigned with new icons
 * New Open External button that opens selected file/folder in the platform's default application (independently of what pressing Open would do). This could be used to quickly open a folder or preview the file before actually selecting it.
 * Extension checking and filename validation. (See #8911)
2024-06-29 21:56:54 +05:30
pentarctagon
291be986f6 Revert "GUI2/Addon Manager: make addon id more prominent, debug-only"
This reverts commit 78620c7d6171345691586fdc3183656738f1f4aa.
2024-06-25 19:18:42 -05:00
Gothyoba
16c4a57556
Tutorial: AToTB is a "novice" campaign 2024-06-25 18:42:32 +02:00
Steve Cotton
87b6371523 AToTB: Warn in the description how hard the challenging difficulty is 2024-06-25 14:03:26 +02:00
Nils Kneuper
fb71eac1b8 updated Ukrainian translation 2024-06-22 23:05:47 +02:00
newfrenchy83
77d023690a Generalize the use of max_value and add the min_value attribute
In the case of [leadership], the fact that the values of each ability can be added when cumulative=yes can justify the addition of limit values not to be exceeded, but this can also apply to heals and [regenerates] with the use of 'add' or 'multiply'.

As for [resistance], it already uses max_value, but if cumulative=yes, then all max_values can add up which could be problematic.
2024-06-19 09:18:54 -05:00
pentarctagon
1712b357c2 1.19.1+dev 2024-06-17 10:50:57 -05:00
pentarctagon
6189964a77 1.19.1 2024-06-17 10:49:01 -05:00
pentarctagon
d63e06d87a pot-update and regenerate doc files 2024-06-17 10:33:41 -05:00
Gunter Labes
6d6bb8dc0c
Update generator calls since the method was removed in 2413e2f 2024-06-16 21:51:16 +02:00
doofus-01
ae8556a4c6
dragoon/cavalier animations
* melee anim for Dragoon

* wounded bob for dragoon

* cavalier melee anim

* update copyrights
2024-06-16 08:07:07 -07:00
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 55aa8b44cfd561d0d97f254312f395cebc8ccc6e)
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