Commit Graph

29968 Commits

Author SHA1 Message Date
Subhraman Sarkar
6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30
Thewodoros
f83f5533d6
EI S06b: fix a couple of small bugs, code improvements (#9707)
* Simplify Owaec/Yannic meet event
* Simplify meeting event after enemy leaders deaths
* Use correct variable in Yannic's last_breath event
* Fix bug with victory message
* Make scenario-ending event non-repeatable
* Simplify time-over event
2025-01-08 06:35:54 -06:00
Dalas121
f05b6e32b7
LoW S10: fix impossible win condition
Resolves #9705
2025-01-07 18:57:51 -06:00
Thewodoros
576985c51a
EI S07a: Init variables in prestart (#9704)
So we don't need to check for their existence afterwards.
2025-01-07 07:18:34 -06:00
Subhraman Sarkar
db8873e2aa mp method selection: improve accessibility
tab ordering has been added to the username textbox and the list of methods.
this serves two purposes:
1. the listbox is initially selected, so the user can select entries using keyboard.
2. navigation between the listbox and the username textbox can be done using TAB.

additionally,
3. the message and control layout has been tweaked to hopefully make it a bit user friendly.
4. the last selected method is remembered via a preference key.
5. a [X] button has been added on top-right so that the window can be
   closed via mouse. (previously, it was only possible with the keyboard
   Esc option or by clicking on one of the methods.)
2025-01-07 00:46:40 -05:00
Charles Dang
33f8dfd7a1 GUI2/Outro: fix text not wrapping (resolves #6041)
Part of what's unusual about this dialog is we use canvas shapes to draw the text rather than actual widgets. I want to look into doing so, but it makes alpha fading more difficult.

Nonetheless, this problem also arose because text wrapping is handled differently from other text shape keys. Instead of evaluating a formula taken from the config (for instance `"(text_wrap_mode)"`), the value is queried from the WFL variables set on the canvas directly before being passed to the text rendering code. The value set for said variable is controlled by the wrap=true/value key, which is set per widget *instance*.

Making the canvas handle this key like any other would mean making sure most text shapes have the appropriate config key set, even if (as the example above shows) the key only spit out the formula variable anyway.

Also made it so text doesn't go all the way to the edge in the event that it stretches that long.
2025-01-05 19:44:21 -05:00
Thewodoros
75fbf3002e
EI S06a: improve death and endlevel events (#9700)
* Don't trigger event after Dolburras is rescued
* Merge unneeded duplicate events
* Don't trigger retreat if leader is killed
* Fix bug with dwarf death triggering undead retreat
* Remove unnecessary variable
* Use standard [endlevel] instead of [fire_event]
* Fix bug when former jailer death shows objectives
* Move events for readability
2025-01-05 08:53:21 -06:00
Charles Dang
dce17a3ba7 GUI2/Outro: reduced text size 2025-01-02 21:31:59 -05:00
Dalas121
01439c6cd8
EI S05 prose: Galdren and the sylph (#9689)
Fix some EI dialogue inconsistencies
2025-01-01 09:45:37 -06:00
Thewodoros
cbeb4e4d34
Clear dangling variables (#9688)
These variables are not used later, so they may be cleared.
2025-01-01 07:37:21 -06:00
Subhraman Sarkar
a59c4fa80b update some tips based on recent changes
* Unit Description has been renamed to Unit Type Description recently.
* Introduction of vision cost means that how many hexes units can see vs how many hexes units can go is not same.
2025-01-01 15:21:34 +05:30
Elvish_Hunter
2583d9ae80 Fixed a flag description in wmllint and GUI.pyw
The description for the -m flag now correctly says 'warn' instead of 'don't warn'.
2024-12-31 15:07:15 +01:00
gfgtdf
ce262e9275 WC: use [leader] 2024-12-31 01:09:06 +01:00
Subhraman Sarkar
bab3dd6e35 unified units dialog with configurable options
instead of having multiple dialogs with similar UI, we use only one dialog to which multiple configurations and data can be set.
2024-12-29 22:00:00 +05:30
Dalas121
8cccfb15cc
Move custom AMLAs from EI to core (#9635)
EI contains a basic custom set of AMLAs, replacing the default +3hp for all player units. Units gain a +8hp AMLA option, and units with 1/2/3+ melee/ranged strikes gain options for +4/+2/+1 melee/ranged damage, respectively. Investing XP into these AMLAs remains much weaker than leveling a new unit.
2024-12-28 07:07:14 -06:00
Subhraman Sarkar
ec0e0992b6 help topic generator: fix typo
also make the help browser a bit wider, otherwise images overlap with text
2024-12-26 12:21:09 +05:30
Wedge009
f360e781c7 Replace non-standard spacing.
[ci skip]
2024-12-26 17:02:14 +11:00
doofus-01
fafa0e7b13
1.19 - Coastal Raider (new ship) (#9616)
* add new ship 'coastal raider', sprite and standing/moving animations mostly by Vilaliy Bakal

* fix raider portrait

* add WEAPON_SPECIAL_NAVAL_RAM

* Iron Raider variant

* better halo glow for fireship

* change race=transport to race=ship
2024-12-25 17:53:26 -08:00
Thewodoros
96a2ff69c9
EI S05: Reduce code duplication when Owaec's side joins (#9678)
Move the code for Owaec's side joining you into a custom event. This code doesn't contain any dialogue, which stays in the enemy leaders' die events.
2024-12-25 12:25:27 -06:00
Thewodoros
507e84e8cb
EI S04c: Fix warning message by Dacyn (#9677)
Avoid the case when Dacyn says the warning after Ravanal already noticed him.
2024-12-25 08:56:49 -06:00
Dalas121
e586f2bcf5
Dwarvish Explorer: reduce resistances from 20% to 10% (#9666)
* Dwarvish Explorer: physical resists reduced from 20% to 10%, melee damage increased from 10 to 11.
2024-12-24 11:35:02 -06:00
Discontinuum
4475260e68
Nerf of Orcish Crossbowman (#9509)
* Orcish Crossbowman: melee 6-3 -> 4-3, experience to level 43 -> 57
2024-12-23 12:30:24 -06:00
Thewodoros
868cb845f0
EI S04c: Improve unit filters in scenario end dialogue (#9671)
Use the survivor trait instead of the type in case the unit has advanced a level.
Also remove unit type filter for side 8 because it's redundant.
2024-12-23 11:53:57 -06:00
Gothyoba
a74b39da25
Buff Dune Warmaster (#9534)
* Dune Warmaster: HP 59 -> 61, scimitar damage 9 -> 10
2024-12-23 08:38:10 -06:00
ZombieKnight
9b0430e1f7 Update message.lua 2024-12-20 20:57:48 -05:00
Thewodoros
19be417a05
EI: forbid dunefolk from taking the Plague Staff and add custom rejection messages (#9654)
Fixes #9627
2024-12-20 07:56:53 -06:00
pentarctagon
8210f33a7b add preference to not get addon icons
also skip if DataURI is too large
2024-12-19 11:54:14 -06:00
Gothyoba
10364b169b
Increase Fire Resistances of the Fire Guardian Line (#9438)
* Fire Wisps and Guardian - Fire Resistance changed from 50% to 70%
  * Fire Wraith - Fire Resistance changed from 50% to 80%
2024-12-19 09:24:41 -06:00
Wuzzy
0c1357b594 German translation update
merges #9625
2024-12-19 02:19:20 +01:00
pentarctagon
f7dc6ebaeb 1.19.7+dev 2024-12-18 16:58:02 -06:00
pentarctagon
4a689a687d 1.19.7 2024-12-18 16:57:02 -06:00
pentarctagon
144fa9c71a pot-update and regenerate doc files 2024-12-18 16:55:39 -06:00
gfgtdf
c1c0111d3c WC: New carryover implementation.
We now use a modified default carryover calculation,
the main advantage is it now uses the normal carryover
message on endlevel, and shows how it is calculated.
2024-12-15 05:17:57 +01:00
gfgtdf
06d1fade32 split gold_carryover into smaller functions
this way the functions can easily be reused for alternative
carryover implementations.
2024-12-15 05:17:57 +01:00
gfgtdf
f29f8fb368 move the carryover gold handling and dialog to lua
The idea is to make it easier for umc devs to implement
their own carryover / early finish bonus mechanics. Maybe
we can also make use of it in Worls Conquest.
2024-12-15 05:17:57 +01:00
pentarctagon
893b31e769 return pbl author attribute to its original usage
and use the new primary_authors attribute instead

Fixes #9547
2024-12-14 18:49:32 -06:00
gfgtdf
bf4ad3bb42 WC: fix campaign abbrev
previously it was unclear what the trailing number meant,
also the order couldn't be changed in the translation.

Also the player number was shown 2 times in the savefile name,
resulting in names like 'WC1-WCII 1 -Start-Auto-Save.gz' so i
removed it from the scenario name.
2024-12-14 22:53:12 +01:00
gfgtdf
e549b03412
DM: S20: Fix waittime at scenario start
Don't animate unit advancements during a prestart event.

It woudl be better it u:advance() would automaticialyl not waste time animating advancements that can't be seen (during prestart events) but for this scenario this is already an improvement
2024-12-11 19:48:57 +01:00
Thewodoros
f7fd05b63e
EI S04c: fix gold management for Ravanal (#9637)
Give side 7 gold to recruit units only after ravanal_gets_serious event, and only if they are low on units, so not to clutter the map.
2024-12-09 07:15:58 -06:00
Charles Dang
10b640c0f2 GUI2/Listbox: refactor initialization process
Used work by @babaissarkar in #9630 as a base. We're finally using [instance] for something!
2024-12-08 23:04:43 -05:00
Yoruma
dcbe883699
Fix exception when opening MP a second time at low resolution (#9622) 2024-12-06 14:41:14 -06:00
Gothyoba
91d6bb4b45 Demote Dawarf to level 0 2024-12-06 14:35:07 -06:00
Gunter Labes
01908e9274
Reject image URI with unsupported type 2024-12-04 11:15:48 +01:00
Dalas121
42ed77905b
Elvish Champion stats tweak (#9621)
Elvish Champion: HP 72 -> 70, cost 61 -> 60, accuracy bonus is now explained via a weapon special. Resolves #8706
2024-12-02 15:04:15 -06:00
Thewodoros
d3dfe36571
EI: Fix last breath events for Hahid and Grug (#9619)
When Hahid dies, Grug or Dolburras, if present, say the "eulogy". There were problems in scenarios where they first appear (S06a for Dolburras and S07b for Grug) - they say it even before joining the player's side, which makes no sense. I changed the message tags in utils/deaths.cfg to use "id" and "side" instead of "speaker", so they only say it when they are on the same side as Hahid.
Also in S07b, Hahid's herodeath macro was duplicated, so the dialogue was displayed twice.
Also I changed Grug's herodeath to "id" and "side" and re-included it into S07b, so now Gweddry says the eulogy for Grug after Grug joins, but not before.
2024-12-02 10:21:56 -06:00
Gothyoba
c5c4c7af07
Balancing Update to Dwarvish Miner (#9506)
HP 22 > 25
XP 24 > 20
2024-11-30 15:09:34 -06:00
Thewodoros
70a76b0e21
EI: add missing last breath (HERODEATH) events for Addogin (#9611)
In S04a, the event is added within his original "last breath" event - the one which switches him to the player's side. Without this additional event, he will die silently if killed by the elves after being "captured".

In S11, it looks like the event for him was simply forgotten (HERODEATH events are added for all other heroes).
2024-11-28 16:38:00 -06:00
Thewodoros
2db282c273 Clear forgotten variable
gold_extra is not used in further scenarios, just like gold_cost.
2024-11-29 04:02:36 +11:00
Thewodoros
22a1a9d5d4 Use variables for deducting gold in EI S04b
These two variables are used everywhere else in this scenario, hardcoding the amounts here must've been a mistake.
2024-11-29 04:02:36 +11:00
Subhraman Sarkar
2477618306 rich label: support specifying text color, font and style in resolution
This allows the rich_label definitions in rich_label_default to work.
2024-11-28 23:04:05 +05:30