Commit graph

29838 commits

Author SHA1 Message Date
Celtic Minstrel
2a26a68025 Some updates to Lua map location operations
* Rename the vector operations to hex_vector (to emphasize that they are NOT standard vector ops) and document them as official API
* Add new get_hexes_at_radius, which returns an unfilled ring (as opposed to get_hexes_in_radius which returns a filled circle)
* Expose the new cubic coordinate conversions
2024-09-15 15:27:39 -04:00
Gunter Labes
654a199d5f
Use proper apostrophe 2024-09-15 13:13:29 +02:00
Oleksii
094918c5ac
LoW: some fixes for S10, S22 (#9128)
* fixes for S10, S22
* fixes for #7137 #8359 #8360
* fixes for #7137 #8359 #8360
* fixes for #7137 #8359 #8360
2024-09-14 15:00:02 -05:00
Gunter Labes
c53cb1d6fb
Add missing tags to game config schema 2024-09-13 21:59:04 +02:00
Gunter Labes
41729833c8
Include the unknown condition in the error message 2024-09-13 21:50:17 +02:00
Steve Cotton
7f8e3344cf Add a second unit test for TEST_FORCE_CHANCE_TO_HIT
It should work even when the macro appears in the same event as the
attack; this tests that.

The new one uses the COMMON_KEEP macro, but I've left the existing
one unchanged, except for the renaming.
2024-09-13 19:15:56 +02:00
Subhraman Sarkar
14732806c9 Preferences: move the Apply button and disable it unless needed
this also makes it obvious that the Apply button is used only for UI theme selection, and is not a global Apply button
2024-09-11 15:07:49 -04:00
pentarctagon
d32a363ae8 plague tests 2024-09-10 18:14:50 -05:00
Subhraman Sarkar
47642719bf Update the help page entry for the Item tool to reflect that removal is now possible 2024-09-10 06:14:34 +05:30
Gunter Labes
91e6daad23
Fix image file name 2024-09-09 18:18:17 +02:00
Gunter Labes
45558f52ee
Use correct wesnoth option 2024-09-09 16:22:01 +02:00
Charles Dang
e814a48f40 GUI2/File Dialog: clean up definition 2024-09-09 09:09:22 -04:00
Gunter Labes
4991005765
WC: Explain that you can also add data via resources 2024-09-08 19:54:42 +02:00
newfrenchy83
5c9065eb7e change calculation rules so that add and sub are always used independently
when two special weapons use multiply and divide with the same id, both operations are used, isn't that so why should it be different with 'add' and 'sub' where it's the larger value that is used (if asub=value_sub and add=value_add are used and value_sub>value_add then value_sub is used). This logic is counter-intuitive. that multiplication/division is applied to (base_value +- add/sub) is understandable but not this discrimination. For me add and sub should still be usable; even if it means changing the rules, but I think we will gain clarity in the end.
2024-09-08 14:16:28 +02:00
pentarctagon
9e756f9fc5 petrifies tests 2024-09-07 19:53:08 -05:00
Steve Cotton
547de5fd93 Test calculations of abilities with add and sub
Fix a typo in the add_sub_separated test, because it was testing
exactly the same code as add_sub_cumulative.

Add two new tests and clarify documentation, because in these tests
the order of the abilities determines whether the add or sub value is
used, it isn't that sub always overrides add.
2024-09-07 21:02:39 +02:00
newfrenchy83
c5351fb998
Fix recursion ability count version (#9296)
I use the same method what in master for weapon special recursion.
2024-09-07 16:45:26 +02:00
Subhraman Sarkar
adef779ed9 unit type editor: various ui improvements and bugfixes
1. race/alignment/attack damage type/attack range show corresponding icons
2. attack damage type/range now use comboboxes for custom dmg types/ranges
3. quit confirmation added to cancel button so that user doesn't accidentally lose their data
2024-09-06 09:02:05 +05:30
newfrenchy83
979289b579 fix tag_name check deficiencies
The tag_name check is deficient for two reasons:
1.when apply_to=both is used, in the case of [damage_type] [filter_opponent][filter_weapon]type= will check the modified type for application to the owner and the original type for application to the opponent, hence a risk of infinite recursion, especially if [filter_self][filter_weapon]type= is used in the same weapon.

2. in the case of apply_to=attacker/defender, the check for [filter_attacker/defender] must take into account both the value of the variable is_attacker but also the application AFFECT_SELF/OTHER, otherwise in the case apply_to=defender with [filter_defender][filter_weapon]type=, and[filter_attacker][filter_weapon]type= otherwise we end up in the same configuration as for apply_to=both

Finally tag_name is renamed check_if_recursion to mean that this variable is used to ensure that a recursion cannot be set up even if 743b146efc prevents it from causing a crash but with an error log
2024-09-05 18:35:35 -05:00
Ethan-Nowa
eff8301cac
NR05a: Vary dialogue to better suit the speaker (#8830)
I changed some of the lines in NR The Pursuit to fit better with the different characters. Tallin, Abhai, Krash, etc.
I did not do it for every dialogue.
Addresses issues #8319 and #8772

More PR review feedback addressed by Wedge.

---------

Co-authored-by: Wedge009 <wedge009@wedge009.net>
2024-09-04 10:35:35 +02:00
Steve Cotton
de342bb29c Fix typos in test of recursion 2024-09-03 18:39:22 +02:00
Wedge009
0618eadf3e Replace tab with spaces 2024-09-03 17:02:12 +10:00
Wedge009
9b51a62a2e Remove contentious last sentence as per PR review. 2024-09-03 17:02:12 +10:00
palmenf
25e77a13e9 Added an explanation of vision to the in-game help 2024-09-03 17:02:12 +10:00
Gothyoba
3bcec77482 AToTB: Use month names intead of Roman Numerals 2024-09-03 07:09:11 +10:00
Tahsin Jahin Khalid
1e1db849fd names: remove inappropriate saurian name 2024-09-02 12:31:57 -04:00
Subhraman Sarkar
2985574c87 remove inproper and inconsistent names
1. remove obviously English and English sounding female names from Dunefolk female names list
2. remove 'bakri' from male name list (means 'goat', could be offensive)
3. remove one potentially offensive name from saurian name list
4. remove 'Dalal' from dunefolk female names (can be used as slang)
2024-09-02 21:12:58 +05:30
pentarctagon
96420da3d5 heal_on_hit tests - results are identical to drains aside from default value 2024-09-01 19:40:14 -05:00
Dalas121
8d90a2b6f5
Reduce Corpse/Soulless arcane vulnerablility from -40% to -20% (#9282)
Resolves #9224
2024-09-01 18:25:34 -05:00
Elvish_Hunter
61379bb5bc Fix wmlindent warnings 2024-09-01 01:14:40 +02:00
Elvish_Hunter
742f400612 Silence several wmllint warnings 2024-08-31 23:07:09 +02:00
pentarctagon
f22fb410a3 firststrike tests 2024-08-31 10:14:36 -05:00
Tahsin Jahin Khalid
41f87afaf7
SotBE S7: UX improvements (#9279)
- add auxiliary camp keep and camp
- make scorpions avoid villages

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2024-08-31 15:23:55 +06:00
Tahsin Jahin Khalid
29123810fb
Sotbe/S5: some refinements (#9270)
- give side 1 starting villages near the orc base
- move Kapou'e to his keep at start

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2024-08-28 22:55:10 +06:00
Tahsin Jahin Khalid
d10ae768b5
SotBE S6: replace bad advice at turn 2 (#9269) 2024-08-28 22:54:24 +06:00
Tahsin Jahin Khalid
3f4ceb7d1c
[SOTBE] S3: make allied AI smarter (#9239)
* SOTBE-S3: make allied AI smarter

- they wont attack from poor defense anymore
- will only attack from hills where they have better defense

* SOTBE-S3: fix bad code in side AI

---------

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2024-08-28 22:53:34 +06:00
Gothyoba
c9819eb85d
Turn Dwarvish Miners into a Level 0 unit (#9158) 2024-08-27 23:23:43 +06:00
newfrenchy83
67a491bb9b add test for apply_to=both and apply_to=attacker/defender when both type of self and opponent weapon are filtered.
if filtering type of damage in [damage_type] for both self and opponent when apply_to=both, it will create a recursion issue.

Idem for apply_to=attacker/defender when applied to opponent of owner of special.
2024-08-26 16:42:30 -05:00
doofus-01
033012219e
Add Exif tags to images (#9254)
Artist & copyright Exif tags track the copyright info in images, replacing what used to be tracked with "copyrights.csv".
2024-08-25 20:18:16 -07:00
pentarctagon
815739f1c2 drains tests 2024-08-25 20:46:15 -05:00
Subhraman Sarkar
59911072aa support loading gui2 themes from add-ons
Requires a `gui-theme.cfg` file in Add-on root with a `[gui]` tag.
(Add-ons without all buttons in title_screen may get flagged as defunct.)
2024-08-25 01:56:22 -04:00
Dalas121
9ae2978fcd
Death Squire optional advancement macro and damage nerf (#9207)
* Death Squire optional advancement and damage nerf

The existing {ENABLE_DEATH_KNIGHT} macro allows Revenants to advance to Death Knights. The newly core-ed Death Squire also advances to Death Knight, but has no {ENABLE_DEATH_SQUIRE} macro.

I suggest adding a new {ENABLE_DEATH_SQUIRE} macro, while keeping the old {ENABLE_DEATH_KNIGHT} for backwards compatibility.

I also propose reducing the Death Squire's attack from 8x4 to 9x3, to make the Revenant a more competitive advancement.

Who's the current maintainer of SotA? Should {ENABLE_DEATH_SQUIRE} be used there, or should we continue using {ENABLE_DEATH_KNIGHT}?

Hejnewar, if you approve, what cost should the Death Squire be after this change?

* Reduce Death Squire damage from 8x4 to 9x3

* Update Skele_Death_Squire.cfg
2024-08-24 19:04:17 -05:00
sprunk
44f54bb57a Fix #9241, Liberty S1 dialogue item tweak
Extends damage and not the number of hits, so use "heavier rocks" instead of "more rocks".
2024-08-24 18:55:29 +10:00
Nils Kneuper
aef0d3d87d updated Turkish translation 2024-08-23 14:48:01 +02:00
Gunter Labes
9b70484b4f
Fix an indent inconsistency and add missing final newlines 2024-08-21 21:48:04 +02:00
Celtic Minstrel
e338869b01 Down with wmlindent!!!
Why on earth does it want to indent line continuations by another level!?
2024-08-20 13:41:46 -04:00
Celtic Minstrel
387499532c Encyclopedia: Fix inconsistent indentation and break up the lists in every topic 2024-08-20 09:06:43 -04:00
Wedge009
cb144c5739 Encyclopedia clean up following #9188.
[ci skip]
2024-08-20 21:39:33 +10:00
Wedge009
a88d7ef1f8 Cats: Remove non-standard spacing and replace straight quotes.
[ci skip]
2024-08-20 16:53:34 +10:00
Gunter Labes
0bb7395804
Make sure stdout encoding is UTF-8 2024-08-19 08:51:05 +02:00