Commit graph

75233 commits

Author SHA1 Message Date
sigurdfdragon
da1f4cfefb Update changelog 2019-05-12 22:44:11 -04:00
Nils Kneuper
190de853ef updated Turkish translation 2019-05-12 13:32:10 +02:00
Jyrki Vesterinen
77da93cbf2 Fix a rare crash in attack prediction
The crash occurred if
* the AI simulated three fights for a unit in a row
* the unit was initially slowed
* the unit had a chance of killing the attacking unit in the first
fight, removing the slow status
* the second fight was NOT simulated with Monte Carlo mode...
* ...and the third fight was.

It was my mistake from commit d83e0176. I hadn't understood the meaning
of those two function parameters correctly. They don't need to be set to
true if the target unit is already slowed... and, in fact, they must not
be set to true if the attacking unit doesn't slow.

What happened here is that the combat matrix thought that the attacker's
attack slowed the defending unit, placing the result of some of
attacker's hits in the wrong plane. Meanwhile the calculation about the
probability that the defending unit is slowed produced the correct
result. In the next battle, when Monte Carlo mode scaled the "not
slowed" HP distribution with the probability of not being slowed, it
detected the severe discrepancy (in the example case, probabilities only
added up to 12,5 % instead of 100 %) and crashed the game.

This commit fixes the issue by passing correct parameter values.
Fixes #4068.
2019-05-11 23:26:29 +03:00
Steve Cotton
ea11b238b4 DiD S09: Unblock the book if one of DV's units is standing on it
Refactor to using location_id for the location of the book, because it appears
multiple times in the .cfg file.

An edge case to this edge case: if DV's turn starts with DV next to the book
and one of DV's units on the book, DV doesn't move until the next turn.  This
was also true if the unit moved to attack something, and works in the player's
favor, as it gives Malin an extra turn to grab the book, so I'm treating it as
a feature.

If DV does grab the book, explicitly say in the objectives that it's now a race
to the escape tunnel. The sequence for that is:
* DV takes the book (no messages at all)
* silently update objectives (escape to win, same as Malin taking the book)
* player ends turn
* DV moves, Malin asks if he's going to be left behind
* start of player's next turn: objectives shown (race to win)
2019-05-11 14:28:45 -04:00
nemaara
42001f3da4 TSG S8b: update comment on time areas 2019-05-11 12:17:44 -04:00
nemaara
95b15f6f4f TSG S8b: fix buggy ToD schedules 2019-05-11 12:11:11 -04:00
Jyrki Vesterinen
6b0ef7e3ce Replace strcmp() with string comparison operator
This isn't C.
2019-05-11 15:11:38 +03:00
josteph
c56245958d unit_create: Remove debug check
It's not needed in this debug-only dialog.

Thanks @ProditorMagnus
2019-05-11 10:49:18 +00:00
josteph
5845684ee0 unit_create: In debug mode, show unit type id's in their help topics.
Useful when multiple unit types have the same name.
2019-05-11 10:19:14 +00:00
josteph
d25463e445 Help: In debug mode, show unit type id's in their help topics.
Useful when multiple unit types have the same name.
2019-05-11 10:19:14 +00:00
nemaara
38da648634 Add udpated campaign descriptions to changelog 2019-05-11 03:48:33 -04:00
nemaara
f0111a8be8 DiD: update campaign description 2019-05-11 03:47:47 -04:00
nemaara
9776777f85 TSG: update campaign description 2019-05-11 03:22:31 -04:00
nemaara
0bae68b07a TSG S8b: fixed buggy ToD schedule shifts 2019-05-11 02:54:32 -04:00
Iris Morelle
19b326ce03 pofix: 1.14 announcement rules for 1.14.8 macOS rev a
[ci skip]
2019-05-08 19:12:13 -04:00
Iris Morelle
5b00a4db11 pofix: 1.14 announcement rules for 1.14.7 macOS rev a
[ci skip]
2019-05-08 19:11:50 -04:00
Martin Hrubý (hrubymar10)
a97a91a1d4
Fix Xcode project 2019-05-08 22:13:19 +02:00
Steve Cotton
e1e7bf7585 tips: Clarify that these are about the editor, fix quotes
The "User Scenarios" label changed to "Custom Scenarios" in ae6ed8e71.
2019-05-08 09:35:03 +00:00
josteph
b9b61409d2 mp_staging: Fix terminology in tooltip
Fixes #2842
2019-05-07 16:38:30 +00:00
josteph
8c2782869d tips: Don't use dev terms
https://forums.wesnoth.org/viewtopic.php?f=6&t=49683
2019-05-06 19:08:16 +00:00
Nils Kneuper
4d168369e2 updated Turkish translation 2019-05-05 10:51:28 +02:00
nemaara
724abbfc54 Fix typo, version numbering, and whitespace issues in changelog 2019-05-04 12:53:25 -04:00
nemaara
7a9f4b526d
Merge pull request #4060 from nemaara/prose
Prose updates for orcs eating other sapient races
2019-05-04 12:43:56 -04:00
nemaara
efb37218fd Add TRoW and DW updates to changelog 2019-05-04 12:41:27 -04:00
nemaara
a463bb3c75 TRoW: add/tweak dialogue 2019-05-04 12:36:22 -04:00
nemaara
dd5731962d TRoW: correct number of scenarios 2019-05-01 23:55:45 -04:00
nemaara
2019e033da DW S3: dialogue cleanup 2019-05-01 23:33:44 -04:00
nemaara
9ca34ad717
Merge pull request #4047 from nemaara/portraits
Add/move around mainline unit portraits
2019-05-01 22:05:46 -04:00
sigurdfdragon
1141a07906 Campaigns: Add 'Wings of Victory' (Drake Campaign) 2019-05-01 18:32:17 -04:00
Severin Glöckner
aa714827be wmlinit rules for renaming orcish leader images
[ci skip]
2019-05-01 21:46:30 +02:00
Severin Glöckner
3e0fa40dc7 run woptipng --threshold 0 onto new image
[ci skip]
2019-05-01 21:27:49 +02:00
nemaara
346d163bb5 Update changelog with unit portrait updates 2019-05-01 13:15:24 -04:00
nemaara
c5fe727e37 Move orcish leader portraits to ruler 2019-05-01 13:14:16 -04:00
nemaara
df0ef787f7 Update changelog with added Water Serpent portrait 2019-05-01 13:06:38 -04:00
nemaara
02359b507c Water Serpent: add portrait 2019-05-01 13:06:37 -04:00
nemaara
452a002116 Add fire dragon portrait move to changelog 2019-05-01 13:06:36 -04:00
nemaara
33eda16aad Move fire dragon portrait to core 2019-05-01 13:06:31 -04:00
loonycyborg
38dbf99a0b forum_user_handler: recreate sql connection before retry on error 2019-05-01 13:33:38 +03:00
Severin Glöckner
ad41ce8a3f MP: Call side for empty slot »Nobody«
This sounds in German better, it might as well in English.
2019-04-29 23:03:36 +02:00
Severin Glöckner
8de92f5d92 ANL String changes
Remove hint, as map settings are now forced (thanks to new 1.13 feature),
and remove dot from objectives, as the usually use none.
2019-04-29 23:03:36 +02:00
Severin Glöckner
494c3cd5f5 ANL: scale image in menu to same size as the others
[ci skip]
2019-04-29 23:03:36 +02:00
Severin Glöckner
53cfa331c4 Revert "Low: Work around OOS caused by [advancefrom]"
for master, a better method exists

This reverts commit 85868544cc.
2019-04-29 23:02:51 +02:00
Andrius Štikonas
5509fa0517 Fix two typos in comments. 2019-04-28 15:33:37 +03:00
Nils Kneuper
55864e1282 updated Turkish translation 2019-04-28 10:27:41 +02:00
nemaara
7df36dc6ad Update changelog with TSG fixes 2019-04-27 11:30:24 -04:00
nemaara
280b608671 TSG S6b: kill elves on side 1 if player got to this scenario with debug 2019-04-27 11:29:45 -04:00
nemaara
bf9a2503c0 Update changelog with TSG fixes 2019-04-27 11:20:44 -04:00
nemaara
11cab73810 TSG S6b: create Urza Afalas if player got here with debug 2019-04-27 11:18:37 -04:00
nemaara
589add2f57 TSG S1: create Sir Gerrick if player skips scenario with debug 2019-04-27 11:18:24 -04:00
nemaara
fda67b0436
Merge pull request #4014 from nemaara/THOT
[THoT] Remove filler scenarios and add character
2019-04-27 10:33:43 -04:00