Commit graph

29470 commits

Author SHA1 Message Date
Steve Cotton
6b516e8aa5 Fix deprecation warning when setting [endlevel]end_credits=
Change the Lua implementation to directly call the
non-deprecated function, this is related to 9daa10a9f2.

Clean up the C++ header files by removing the declarations of
functions that were removed in 3c8de46771.

Use [endlevel]end_credits=no in the test scenario (trigger it
by moving to hex 9,3). If you debug with :next_level without
triggering the moveto, "The End" will show; trigger the moveto
first, and it won't show the credits.
2024-02-02 16:04:27 +01:00
Rafael Fillipe Silva
16e9476191 add a disallowed type to override a mandatory name key into a disallowed optional name key
An impossible regex is defined as the value so nothing will be matched, not even an empty string. The field should be omitted entirely.
2024-02-02 14:57:05 +01:00
Rafael Fillipe Silva
1eb2b494c4 remove super from [elseif] tag, similar to [if], as this is a filter context
This removes the `name` mandatory key requirement from the `[elseif]` without the need of an override.
2024-02-02 14:57:05 +01:00
Tahsin Jahin Khalid
e506c2a1ff
[Units] Raven unit tree stats update patch
* units/ war harbinger: +3 HP, +2g cost, -50 XP

* units/war harbinger: removed village and forest def

* units/Dark Omen: removed village and forest def

* Units/Raven: removed village and forest def

* add changelog entry file
2024-02-01 01:29:24 +06:00
Hejnewar
2811bfcdc5
UtBS: Mitigate issues with flying units breaking scenarios
Fix #8188
2024-01-31 08:51:26 +01:00
Hejnewar
d6e3773aa1
UtBS S08: Skip dialog that does not make sense after discovering the cultist fort
Fix #8198
2024-01-31 08:49:54 +01:00
Hejnewar
f9aa91ee87
UtBS: Remove deprecated [store_unit_defense] use
Fix #8184
2024-01-31 08:45:31 +01:00
PointMeAtTheDawn
a9ac735003
Fix Dust Devil regeneration on terrain with an overlay 2024-01-30 18:50:01 +01:00
OrekOrek
3c21bb4b4d HttT S14 Use "id=" to remove Gryphon units
This fix makes sure that all Gryphon units are killed no matter where they are on the map.
2024-01-30 17:55:46 +01:00
doofus-01
2ed76c9458 fix terrain graphics rule for elevation/ice/water transition 2024-01-28 17:42:38 -08:00
OrekOrek
5043badb34 Fallback deletion
Unnecessary fallback is deleted.
{CLEAR_VARIABLE terrain} is moved to the right place.
2024-01-28 18:49:34 +01:00
OrekOrek
f48a2fbabb HttT S12 Snow falls at a constant pace
Line 227 (original):
Re, Rb are dirt, and these hexes are not converted to snowy terrain. However, by having them within [filter_location], snowfall pace fluctuates. Also, Hhd^Vc doesn't exist on this map.

Line 258~269 (original):
Coa and Hhd are not filtered.

Line306~311 (original)
Hhd^Vc doesn't exist on this map.

These changes make snow fall at a constant pace. Also, unnecessary codes are deleted.
2024-01-28 18:49:34 +01:00
Elvish_Hunter
10733b1071 wmllint: check if campaigns are in the 'campaigns' folder before considering them as mainline for the rank check 2024-01-26 21:46:37 +01:00
Elvish_Hunter
1c9274faea wmllint: make the 'ignore' magic comment actually work in certain situations
Fixes #8182
2024-01-26 21:31:56 +01:00
Toom
8f01f11065
Remove warning about weapon specials with no name since name is not mandatory 2024-01-26 16:21:15 +01:00
Steve Cotton
84b1a778ae Backstab unit tests: check that backstab works in a free-for-all
The units on the outsides of a backstab don't have to be allied
to each other, they just have to be enemies of the victim. That's
hardcoded into the AI via attack.cpp's backstab_check() function,
hence a unit test to check that WEAPON_SPECIAL_BACKSTAB activates
in that situation.

Add a new map with 4 sides all on separate castles. This is a
variation of the generic 2p unit test map, extended in the south
with a horizontal reflection of existing map.

Add a MAP_FILE argument to COMMON_KEEP_A_B_C_D_UNIT_TEST,
because it's the same setup except for the map file.
2024-01-26 14:35:07 +00:00
PointMeAtTheDawn
4d7aed9c1a Fix Kaleh sword parry 2024-01-25 20:42:06 +01:00
Dalas121
56cc959d93
EI Shadow Mage, Shadow Lord Balance (#7938)
Original Eastern Invasion rework's Shadow Mage/Lord stats were based on undead's 50% arcane vulnerability. With the arcane rebalance, the Mage/Lord's arcane weapon is almost never worth using.  This commit adjusts the Lord/Mage's arcane/impact weapons.
2024-01-23 09:49:43 -06:00
demario-w
4604c949fa
Add 'k' hotkey to core management window from main screen
Fixes #8209
2024-01-22 16:30:39 +01:00
pentarctagon
78dff4cf8e 1.17.25+dev 2024-01-20 20:04:23 -06:00
pentarctagon
971e05c63a 1.17.25 2024-01-20 20:02:42 -06:00
pentarctagon
6b3b6511b6 pot-update and regenerate doc files 2024-01-20 20:02:02 -06:00
Subhraman Sarkar
18086e78ae
Hotkeys (#8249)
Shortcut keys for map editor
2024-01-20 19:32:31 -06:00
Steve Cotton
255a99782e EI S11: Correct a couple of [message]message= to [message]female_message=
Fixup of ebab1ad8fd.
2024-01-21 02:11:11 +01:00
Steve Cotton
87b42c404b Add a unit test for the event-handler reordering bug
This test would fail without the fix from the previous commit.
2024-01-21 01:38:48 +01:00
Hejnewar
b3ec3f4d0b
UtBS Balance (#8269) 2024-01-21 01:15:14 +01:00
Steve Cotton
ebab1ad8fd EI: fix macros in translatable strings, improve po hints
In S11, make the first deserter always male so the translations don't need to
worry about gender variants. However, add gender variants to the strings that
talk to that deserter, as they're new in 1.17.
2024-01-20 23:58:10 +01:00
Steve Cotton
c25fc888a7 Make event_test_filter_condition check when the filters run
Also add the missing first_time_only=no, which is why the three [moveto]
events didn't trigger the third event three times.
2024-01-20 23:00:59 +01:00
Celtic Minstrel
b2b2052e78
Update Morogor Dialect notes (#8258)
Address a few weird or problematic entries in the glossary. This also makes it use the term "glossary" instead of "dictionary", as that's what it really is.
2024-01-20 14:20:25 -05:00
Nils Kneuper
9506be6f6b added new Finnish translator 2024-01-20 14:48:04 +01:00
Pentarctagon
d9aa71ac86
Add missing names to about.cfg (#8260)
Fixes #6475
2024-01-19 16:16:31 -06:00
Toom
8da8b96b07 Set filelist parameter in CrossRefLister constructor call, fixes #7841 2024-01-19 14:20:08 +01:00
Steve Cotton
162c65bedb WoF S01: Improve po hints 2024-01-19 11:41:09 +01:00
Steve Cotton
6ffc6051a6 WoF S12: Leave the epilogue much more open-ended
The replaced first line added facts into canon that didn't need to be there.
Also, that text felt too similar to some real-world racism, which is why I'm
pushing this change during the string freeze.

In discussion during review, the last two lines felt more like the start of
another story than part of WoF itself.
2024-01-19 11:41:09 +01:00
Gunter Labes
f8d8b1b161
Allow overriding tmpout 2024-01-18 22:29:16 +01:00
Toom
c3bc1f3bbe
Show accuracy/parry as weapon specials in html, fixes #7895 (#8259) 2024-01-18 22:01:53 +01:00
Toom
2056be55a3
Support [harm_unit]experience values kill/attack/defend/fight/yes/no (#8231) 2024-01-18 11:32:18 +01:00
Toom
815af53a75 Add warning when [modification]type is not set, re #3415 2024-01-17 19:48:44 -06:00
doofus-01
1ecd4f4d59
1.18 - various minor monster updates (#8195)
* various minor monster sprite updates

* small fixes to wolf portraits, jumping spider portraits

* NE anims for jumping spider

* adding zombie fish, zombie bug
2024-01-15 12:25:38 -08:00
Wedge009
991d9a353f
EI S12: Ran-Lar appears to be renamed Rakkha in #7815. Resolves #8242. (#8244) 2024-01-14 18:25:26 -08:00
Toom
27e5dd50d2 Update all units of type and side after selection with is_game_override 2024-01-14 10:04:31 -06:00
Wedge009
f700b251ba EI S4: Safyam is supposed to be female (resolves #8233). 2024-01-12 19:52:19 +11:00
Wedge009
76034387ce UtBS S6a: Avoid Dust Devil speaking (resolves #8192). 2024-01-12 19:52:02 +11:00
TheFlamelet
1c30866f37
TRoW S08: Fix enemy starting locations for Clearwater Port
Commit dd42e4d4e4 changed the enemy side numbers in the scenario file. However the map file starting locations were not updated accordingly.
2024-01-08 19:27:16 +01:00
pentarctagon
26de1195e3 add a bunch of attacks tests 2024-01-08 12:04:45 -06:00
doofus-01
937d5cbd9e
1.18 Peasant animations (#8194)
* add peasant death anim

* N/S directional peasant attack frames

* update copyrights
2024-01-07 12:10:57 -08:00
Celtic Minstrel
b9ff0c51fe Schema: Fix declaring guard_x/y/loc as required keys in stationed_guard MicroAI (they are optional) 2024-01-06 21:35:40 -05:00
Steve Cotton
9e426d766e UtBS: Units with tailwind have green orbs and rest heal
In UtBS, at the start of the player's turn any units that are next to a
Quenoth Shaman get +1 move (or +2 for some of the L2/L3 shamans).

Without this fix, the buffed units have an orange orb instead of the green
unmoved orb, and don't rest heal next turn (unless the player moves them a
little to make the moves remaining exactly match the max).

The buffed units can move a little and still rest heal; this makes the buff
a little stronger, and the lore explanation is that the shamans can fix the
wounds well enough that a little movement is okay.
2024-01-05 11:07:37 +01:00
Steve Cotton
bc64ea75c5 Fix some multiline po: comments
Multiline comments need the `po:` prefix on each line, otherwise that
line is ignored. This fixes all occurances of this.

Any lines which have nothing after the `po:` are still ignored, so I
haven't added it to the paragraph-break lines. The resulting .pot file
doesn't have paragraphs.
2024-01-05 10:19:44 +01:00
Steve Cotton
7c14bee3f8 Add tests for [harm_unit]
This is testing experience=yes and experience=no, with the expectation that
some new values for that attribute will be added afterwards.

Adds a new generic macro ASSERT_UNIT_HP_XP. Looking thorugh the ability tests,
ASSERT_UNIT_HP (without the XP) could be a heavily-used macro, but it wouldn't
be used by this particular commit, so I'm not adding it in this commit.
2024-01-04 17:50:49 +01:00