492 Commits

Author SHA1 Message Date
Severin Glöckner
2c06fb587e ANL: using second portrait for flavor
In this scenario, the player has only two types. Chances are
that the message for freeing a trapped unit may be spoken by
two Spearmans.
2019-06-15 23:32:49 +02:00
Severin Glöckner
b849adb0da ANL: switch Drake and Gryphon
Drake has an weakness to pierce, which the goblins use.
On the other hand, it has impact resist and does fire damage,
good against WC and skeletons. Thus the side switch.
Because both are quick units and close to each other it won't
confuse players either.
2019-06-15 22:26:52 +02:00
Severin Glöckner
8eaeecfd25 ANL: clear more variables on exit 2019-06-14 04:45:18 +02:00
Severin Glöckner
bdbb9664fc ANL: disable diplomacy actions towards yourself 2019-06-14 04:45:18 +02:00
Severin Glöckner
3925acd82f ANL: applying refactoring changes to other files
Changes from the research refactoring can also be applied here:
- only storing sides gold instead of the whole side
- removing helper variable for loop
2019-06-14 04:45:18 +02:00
Severin Glöckner
04d32e5d96 ANL: research options – check if choosen option is a change
Don't consume MP if the same option was choosen.
Also removed unneccessary code by using 1.13 additions.
2019-06-14 04:45:18 +02:00
Severin Glöckner
acc17f310c ANL: refactor variable
- store only what is needed
- free variable
2019-06-14 04:45:17 +02:00
Severin Glöckner
2683563fb3 ANL: use loyal trait to mark the lack of upkeep
Then spiders got an extra side
The Lvl 0 ones never pay upkeep and got their own macro
The Lvl 2 Guards got the loyal trait

That way it's clearly communicated that all these units don't pay
upkeep, without being obstrusive about the fact.
2019-06-14 04:45:17 +02:00
Severin Glöckner
69b293ce91 ANL: use core macros within anl macros 2019-06-14 04:45:17 +02:00
Severin Glöckner
238f07c779 ANL: use seperate side for spiders
not necessary, side effects:
 - it's obvious that they don't cost upkeep
 - no vision sharing of the caves with the enemies
 - can also attack the enemies though that probably won't happen
2019-06-14 04:45:17 +02:00
Severin Glöckner
213ba8585c ANL: use loyal guardians and adjust income in return
Killing a guardian (the guards or a spider) punished the player,
because the AI then doesn't need to pay upkeep anymore for that unit.

That has been changed, and as the AI has thus less cost, the income needs
adjustments too:

The following has been taken into account:
- the guardian units had upkeep costs of 7g
- the AI has 3-4 villages, each worthy 1g of village_support
  * before turn 7, the AI can't recruit Lv 1 units. From turn 9 it recruits
    exclusively Lv 1 units.
  * This means in the early game the AI payed just 4g upkeep for the
    guardians and when it managed to recruit 3 Lv 1 units it was equal to 7g
- in the late game the AI may need more money in general, as Lv 2 units are
  expensive. The fact that the AI gets 50g in turn 17 means that the income
  is too low to buy the units normally.

The general idea is to have with this change same amount of money in the
early game and the same or more in the late game.

To address the above:
- 4g less income
- the Lv 3 spider is usually killed in each game, often before turn 7. It's
  seen as compensation for the village_gold
- The income of the AI is increased in relation to the turns. From turn 15 on:
  Each turn one of the AIs gets +1g income – in average +1g income each 4 turns.
2019-06-14 04:45:17 +02:00
Severin Glöckner
e5ba221c7a ANL: income lock no longer required 2019-06-14 04:45:16 +02:00
Severin Glöckner
b2b9a90022 ANL: refactor income change
This opens up the possibility to change the income
2019-06-14 04:45:16 +02:00
Severin Glöckner
f11020db51 ANL: avoid unnecessary unstoring 2019-06-14 04:45:16 +02:00
Severin Glöckner
9042ced2a4 ANL: leaders take advantage of player's castles / villages 2019-06-14 04:45:16 +02:00
Severin Glöckner
48e2493359 ANL: disable swamp trick
- by building a house between the swamp and the guardian the restriction
  could have been bypassed. And because attacking a unit next to the swamp
   has higher priority compared to capturing the house it's not very dangerous
- also use the same macro for guardians and leaders movement restrictions
2019-06-14 04:45:15 +02:00
Severin Glöckner
e258bea9bd ANL: code cleanup 2019-06-14 04:45:15 +02:00
Severin Glöckner
036d5e0732 ANL: new objectives screen 2019-06-14 04:45:15 +02:00
Severin Glöckner
0263189ea1 ANL: simplified help
- looks better without image
- no options where they are not needed
2019-06-14 04:45:15 +02:00
Severin Glöckner
c25c22098e ANL: use unsynced help menu 2019-06-14 04:45:15 +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
Wedge009
4c2babc144 Consistent (non-)capitalisation.
Race names seem to be mostly lower-case. Bramwythl the Wose is capitalised because it seems to be a title.

[ci skip]
2019-04-17 13:53:08 +10:00
nemaara
0cd6f5238d Change various references of mermen to merfolk 2019-04-14 11:30:49 -04:00
Severin Glöckner
59a6b77d02 ANL: lose MP when freeing captured unit
This is the old behavior, which was lost when assigning the prisoner side to
both teams.
2019-03-16 10:24:41 +01:00
nemaara
c9e7da8773 Dark Forecast: fix boss spawns not occurring 2019-03-14 00:53:14 -04:00
josteph
7186e30803 Typo fixes
In Caves of the Basilisk, give the monsters names so their descriptions
would show in-game.  The descriptions show in the tooltip, so
a non-empty name is required in order for players to be able to summon
th tooltip.
2019-03-03 15:36:54 +00:00
sevu
96e8880701
Dark Forecast: add placed units to the help 2019-03-02 18:03:21 +01:00
josteph
05cd1521ff Dark Forecast: Enemies that spawn on a village now take ownership of
that village.

Fixes #3890
2019-02-09 12:49:28 +00:00
mattsc
7c34313a41 AI: remove attack_depth settings from mainline campaigns
The attack_depth aspect has not done anything in a long time.
2018-11-16 06:45:40 -08:00
Celtic Minstrel
639787e1c9 Merge pull request #2562 from wesnoth/schema 2018-11-11 13:52:19 -05:00
gfgtdf
9966f813b8 fix lua error in 2p_Dark_Forecast 2018-10-28 14:07:07 +01:00
Celtic Minstrel
b06259811d ANL: Remove needless silent= key from [object]s
The silent key is meaningful only when using the [object] as ActionWML.
None of these are used thusly, so it does nothing.
2018-10-23 22:39:34 -04:00
gfgtdf
c70143077c fix test_lua_mapgen.lua after and -> all rename 2018-10-22 19:28:09 +02:00
gfgtdf
42920cbc88 rename and,or,nor ->all,any,none in luafilters
these come closer to their actual meaning and also are not lua keywords
which might come in hand later, in particular we can now replace the
f_and, f_or,f_terrain, with f.all, f.any, f.terrain if we want.
2018-10-20 13:29:25 +02:00
gfgtdf
45a09464e1 add examplecode for the new lua mapgen features. 2018-10-20 13:29:22 +02:00
Severin Glöckner
f6f7572126 ANL: fix village gold being too low
[ci skip]

(cherry-picked from commit 09f418bdd84838d0230e3d01779c4f567637ece2)
2018-10-07 03:25:15 +00:00
Severin Glöckner
4d15d7e601 ANL: remove superfluous temp variables
The other variables in that event are not needed either, left them in for
readability for the time being.

[ci skip]

(cherry-picked from commit 7a29fc15b4a09837f4eaa2242ab5db4b230f4ef0)
2018-10-07 03:24:59 +00:00
Severin Glöckner
5aaccf2d2a MP Tombs of Kesorak: adjust comment, avoid darkening overlay
A better image is needed, I remove the darkening overlay, because it would be
missleading when a Mage of Light affects this field.

[ci skip]

(cherry-picked from commit 0ef3c0d5f94f895c65598aee36d9ffde63d5766b)
2018-10-07 03:24:59 +00:00
Severin Glöckner
c2d09e9763 fixup, use same capitalization
[ci skip]

(cherry-picked from commit c3227f53d75512e2a2ea6fdbe18f499e2de6577b)
2018-10-07 03:24:24 +00:00
Severin Glöckner
8a90f814ba ANL worker: converting to flatland is not the same as creating a farm
Farms have a multi turn cycle:
1) crate farm (converts to Re)
2) end turn on the filed to harvest (Re has been automatically converted)
3) convert to grasland [othrwise the fields remains unusable for building]

Step 3 was labeled the same as step 1.

[ci skip]

(cherry-picked from commit 1867274d25993d465c74dda528381895e79de7ae)
2018-10-07 03:24:23 +00:00
Severin Glöckner
27f6be9a37 use & to denote team setup in MP
code it as & to avoid a pango warning in stderr
3ec26df changed it previously to '+' to work around that warning
also change it for the untranslatable strings in the credits
[ci skip]

(cherry-picked from commit cd5b3f785e137f66f9d282c8348a6ad877e48d2f)
2018-10-07 03:24:07 +00:00
Iris Morelle
31aaabb92e Fix excessive dots in ellipses in several mainline scenarios
[ci skip]

(cherry-picked from commit de8d468b14119d7486bbbb782a2aabce1b650991)
2018-10-07 03:23:15 +00:00
Severin Glöckner
40dc80f02f slight text edits
- missing dots in some MP strings
- superfluous space in some MP strings
-ran wmlinden on UtBS scenarios

[ci skip]

(cherry-picked from commit 5bd6221c44d1523b210bf9eaa5cf693cde350221)
2018-10-07 03:23:13 +00:00
Severin Glöckner
9cacb51351 Replace deprecated macro with terrain code in MP: Tombs of Kesorak
[ci skip]

(cherry-picked from commit 2a5ea00ad04f5b879ab316aae9578c29378eabb8)
2018-10-07 03:23:13 +00:00
Severin Glöckner
8508964935 Change campfire timezones in MP: Tombs of Kesorak
Instead of having another ToD, the image of the current ToD is used,
but illuminated. This is a visual change, no gameplay changes included.

For the always dark one exists no immage, uses one from after the fall,
with slightly adjusted ToD shifting as it looked to weak.

The 1 hex small campfires look best with dusk.

part of #3056

[ci skip]

(cherry-picked from commit f5890c10a21451b0477ca13956bb6f9124ce621e)
2018-10-07 03:23:13 +00:00
mattsc
f48f566afd Lua code: replace deprecated helper.[gs]et_variable_array() calls
(cherry-picked from commit 3c792fc7d774c96ef467847a6267a71a2f731f96)
2018-10-07 03:21:09 +00:00
mattsc
4586e04eca Lua code: replace deprecated helper.child_range() calls
(cherry-picked from commit 7c137e1a336559acdd6f797192a9516135480b2e)
2018-10-07 03:21:09 +00:00
mattsc
0e017d9f7c Lua code: replace deprecated wesnoth.set_variable() calls
(cherry-picked from commit ce7faae4f41f23f1d1f61d2b4f5ca95d4ce4f89a)
2018-10-07 03:21:07 +00:00
mattsc
05d5afa6a9 Lua code: replace deprecated wesnoth.get_variable() calls
(cherry-picked from commit f1764d182fe33c4e29c6bd42761be2e946cd0c94)
2018-10-07 03:21:06 +00:00