Commit graph

24750 commits

Author SHA1 Message Date
mattsc
972ecc2f56 AI helper: improve efficiency of get_unit functions
The old method is very slightly faster in some circumstances (e.g. for
simple filters and when all units have moves/attacks/etc. left), but we
are talking fractions of micro seconds. By contrast, depending on the
filter used, the new method can save large amounts of evaluation time
once some units have move or attacked.
2018-06-07 06:44:55 -07:00
doofus-01
9bb6cbb82c UtBS: Graphics update for Giant Ant (#3190)
* graphics update for giant ant unit

* slight revision to ant base sprite
2018-06-07 11:48:40 +03:00
Iris Morelle
051182fa1c Fall back to the unit type name for [message] captions for nameless units
Fixes #3211.
2018-06-05 04:44:28 -04:00
sigurdfdragon
85ba7797b2 DW: Fix #3207
...by preventing any allied units from moving to the sword.
2018-06-04 23:56:39 -04:00
Iris Morelle
4e37cdc713 Don't allow [kill] animate=yes to scroll to units through fog and shroud
Restores 1.12's behaviour.
2018-06-04 16:15:37 -04:00
Severin Glöckner
fc427ce58c NR S5a: more bugfixes
* now the situation can appear that spiders can attack Malifor,
  this handles it.
* add *^Xo Terrain to the filter. While there is no bug to fix,
  it looks like it belongs there too.
* work around a tile glitching with an [item] at 22,4
* remove code referring to removed variables

* and run wmlindent

[ci skip]
2018-06-04 19:42:42 +02:00
Thom Diment
913b77d79d NR5_1: Fixes to Malifor attack and secret door events (#3154)
NR S5a: bugfixes

* Fixes #3117 - Malifor damage event now occurs on defence as well on attack

* Fixes #3116: - Doors to the study can now be opened from inside

[ci skip]
2018-06-04 18:52:20 +02:00
Severin Glöckner
4b7a6a98ec remove a duplicated space in a translatable string
...thiugh, in this case it has no effect.

[ci skip]
2018-06-04 02:44:49 +02:00
Charles Dang
c7a06939ab Tutorial S2: made enemy starting gold equal to that of the player
[ci skip]
2018-06-04 06:42:32 +11:00
Charles Dang
bf92dbbfd2 Campaign Dialog: renamed Deterministic Mode label to "Save random seed"
[ci skip]

This better conveys its behavior, especially with the introduction of the hidden PRNG
preference.
2018-06-03 05:18:42 +11:00
Charles Dang
20af37d527 NR S10 - 14: minor cosmetic map tweaks
[ci skip]
2018-06-03 05:18:41 +11:00
Charles Dang
a46eaa2874 NR S13: further reduce enemy gold
[ci skip]

Also fixed an error in my last commit that gave your ally Dwarvish side *more*
gold on higher difficulties.
2018-06-03 00:57:35 +11:00
Charles Dang
5adb931b2a NR S11 - 13: reduced enemy starting gold and income (resolves #3198)
[ci skip]

Also similarly reduced one of your ally's starting gold in S13.
2018-06-02 09:23:44 +11:00
sigurdfdragon
047ededd9e SotA S09: Fix #3192
...by making the filter more exact.
2018-05-31 19:38:23 -04:00
Pentarctagon
9242a5ffd0 Fixup goblin description.
Somehow missed removing the part about the failing bloodline.
2018-05-31 03:04:39 -05:00
Pentarctagon
0b7ca63a86 Updated goblin spearman description.
See: https://forums.wesnoth.org/viewtopic.php?f=32&t=48137&start=60#p628424 and related posts.
2018-05-31 01:49:58 -05:00
Pentarctagon
d913aafc53 Add a couple missing things from the PR that added the units.
Added the elemental trait to the Jinn. Added the undead_variation key to the Jinn, Wyvern Rider, and Wild Wyvern.
2018-05-31 01:22:13 -05:00
Byteron
7f2a8f7c19 TSG: Deoran can't recruit Peasants anymore
for the whole campaign, only in the first two scenarios

closes #3051 [ci skip]
2018-05-30 21:47:42 +02:00
Charles Dang
f72f89f4d5 Campaign Difficulty: consolidated both lines into a single label 2018-05-29 21:00:34 +11:00
Nils Kneuper
183bc272ea updated Italian translation 2018-05-26 21:41:08 +02:00
Severin Glöckner
307d1d1d44 SotA: transform units in S5 instead of S18
this commit differs from the 1.14 one

[ci skip]
2018-05-26 03:52:09 +02:00
Severin Glöckner
3a103e6bbf SotA & UtBS: replace deprecated code
[ci skip]
2018-05-26 03:36:44 +02:00
Severin Glöckner
fec49a53a6 SotA S21: fix terrain filter
The map has been adjusted before, but not the filter

[ci skip]
2018-05-26 03:36:31 +02:00
Severin Glöckner
4db9f17e09 SotA: fix S20, was broken with the removal of the old gates
[ci skip]
2018-05-26 03:36:31 +02:00
Severin Glöckner
627c39a3a8 SotA S18: move DA transformation to lua
[ci skip]
2018-05-26 03:36:31 +02:00
Severin Glöckner
9f37896f32 DiD S7: compensate -1 income with +1 support
[ci skip]
2018-05-25 20:51:29 +02:00
Severin Glöckner
c0d6d4ed94 DiD S7: make villages unattractive
they give no income anymore, but still support

closes #3162

[ci skip]
2018-05-25 20:34:40 +02:00
Severin Glöckner
cca5b6f776 NR Path B:
* to enable playing the path in debug mode
  * set the betrayed friend variable in S5
  * overwrite redruits and gold
* use lua for unit transformations
* clean up code in S5
* fix ellipse change having no effect (probably since 1.12)
  * work around bug 3172

[ci skip]
2018-05-25 19:50:39 +02:00
ln-zookeeper
8b467104bf NR: Gave the Rod of Justice the magical special and improved animation
The animation now uses all three bolt animations (instead of just one), and has a somewhat different color.
2018-05-25 15:33:29 +03:00
Charles Dang
67530c4375 Campaign Difficulty: rearranged entry layout 2018-05-25 11:46:58 +11:00
Charles Dang
e754e64987 MP Lobby: removed manual player list sorting
It didn't make much sense to have these since there's really no situation you'd want
the "default" sorting order, which is however the server decided to send the list.
2018-05-25 11:16:40 +11:00
Severin Glöckner
51db9d01bf DiD S11, Sota S18: move unit type transformation to lua
[ci_skip]
2018-05-24 23:59:57 +02:00
Severin Glöckner
a24068ad02 DiD S11 & S12: transform all Mages instead of changing their advancements
This has the advantage that they use the same help page as newwly
recruited ons, and their advancement options are correctly shown there.

The transformation code is taken from SotA S18

[ci_skip]
2018-05-24 23:17:20 +02:00
Severin Glöckner
0f511e8e55 EI S11: use same approach as in 1e58164
to simplify scenario

[ci_skip]
2018-05-24 23:17:20 +02:00
Severin Glöckner
1e58164961 DiD: fix bug for units not being loyal anymore after leveling up
fixes #3163

[ci_skip]
2018-05-24 23:16:39 +02:00
Severin Glöckner
1315c660e7 Did S5: make campaign easier to debug
by moving an important change into it's own victory event

[ci skip]
2018-05-24 23:10:16 +02:00
Nils Kneuper
cb43b894ee updated Chinese (Simplified) translation 2018-05-24 21:33:53 +02:00
Charles Dang
c48a8e7edd Fixup 9bf7a4c (WFL comment syntax)
[ci skip]
2018-05-24 11:16:34 +11:00
Iris Morelle
f30634842e gui2/preferences: Add margin around the version info button
[ci skip]
2018-05-23 19:50:32 -04:00
Iris Morelle
e8c803d426 gui2/preferences: Add version info button
Also simplifies the layout of the bottom-most row of the dialog a bit.
2018-05-23 19:39:55 -04:00
Charles Dang
9bf7a4c8fb GUI2/Message: tweaked Magic Numbers to fix layout failure with large portraits
[ci skip]

Fixes #2912
2018-05-24 10:26:31 +11:00
ln-zookeeper
cdea2e70cf SoF S9: Removed garbage terrain code 2018-05-22 11:23:41 +03:00
ln-zookeeper
0de4a4c706 TRoW S15: Increased the amount of lvl2 units enemies recruit
This will make enemies recruit equally many lvl1 and lvl2 units, thus decreasing the amount of units overall and making it less feasible to last indefinitely due to hordes of lvl1 units blocking better damage-dealers from reaching player units.
2018-05-22 15:12:52 +11:00
ln-zookeeper
bd23bb3253 HttT S08: Increased Li'sar's income slightly 2018-05-22 15:12:51 +11:00
ln-zookeeper
856b8ce78b TSG S03: Made the scenario very subtly harder
Increased the number of bats/undead the enemy can recruit, and made the terrain east of the enemy camp more easily passable.
2018-05-22 15:12:50 +11:00
ln-zookeeper
c0583a1842 SoF S9: Fixed some issues with the volcano eruption (fixes #3099)
This merely patches the worst problems (multiple successive [endlevel] calls, inconsistent [endlevel] contents, recursive elf die event, lava fills visually broken); ideally the whole scenario should be rewritten and redesigned.

The mask changes only consist of re-sizing them to match the map size.
2018-05-22 15:12:49 +11:00
Charles Dang
8d3f54ce7c [remove_sound_source] now accepts a comma-separated ID list
[ci skip]

Lack of this pointed out by @shikadiqueen.
This change will also throw an error if id= is missing. Not sure if it did so before.
2018-05-22 14:55:34 +11:00
Iris Morelle
8ae38ac19f Do not allow [message] to scroll to units through fog/shroud
This was a regression from 1.12.
2018-05-21 23:23:06 -04:00
Iris Morelle
df782f5401 Fix broken TC in a north-facing standing animation frame for the Revenant
[ci skip]
2018-05-21 21:32:02 -04:00
Severin Glöckner
f291deb6cf LoW 2 S7 - fix repeated endlevel execution
[ci skip]
2018-05-21 18:31:16 +02:00