Commit graph

548 commits

Author SHA1 Message Date
Severin Glöckner
9c099d5d07 remove TODOs regaring overlays 2019-10-02 03:50:39 +02:00
Severin Glöckner
6da85e9042 switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
Severin Glöckner
2978534509 Liberty: add defense cap notes
[ci skip]
2019-09-23 20:53:10 +02:00
Severin Glöckner
c23364b213 indent special notes
[ci skip]
2019-09-16 04:01:07 +02:00
Celtic Minstrel
5556f697bd L: Update special notes syntax 2019-09-12 21:20:26 -04:00
Steve Cotton
1c123fb3fa Allow '1-infinity' in ranges, and tighten the schema's validation of ranges
Fixes #4253.

The schema's validation of ranges now rejects negative numbers, because the C++
code doesn't support them (both before and after this commit):
* utils::parse_range("-7") will return {0,0}, because std::stoi("") throws invalid_argument.
* src/map/location.cpp will parse it as -7, but that will never match an on-map coordinate
2019-08-29 22:28:22 +02:00
gfgtdf
6ba25a8c64 overlay= related wml cleanups 2019-08-25 22:29:49 +02:00
gfgtdf
ef06634485 use overlay effect over [unit] overlays= 2019-08-25 22:29:49 +02:00
gfgtdf
aa07ec7915 add new macors to replace loyal trait. 2019-08-25 20:35:28 +02:00
gfgtdf
5cb93694c6 move loyal overlays to the loyal trait
since the recent changes to overlays= in particular 1a7724e547,
e71033374c and b2cd1cf6c [unit]overlays= is no longer the
recommended way to add an overlay and the use of the
apply_to=overlay effect is reccomended instead, so adding it
to the [trait] is the most natural option here.

this in particular fixes #4058 . Also people simply forgetting the
IS_LOYAL macro was a not-so-uncommon cause of bugs.

In some cases people want to give the LOYAL trait without giving the
loyal overlays for those cases i added a optional OVERLAY parameter to
the {TRAIT_LOYAL} macro, also heroes should now use {TRAIT_LOYAL_HERO}
instead which uses the hero overlay. The IS_LOYAL and IS_HERO macros are
no longer needed in combination with those traits.
2019-08-25 20:36:35 +02: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
nemaara
82d88ad941 Added default AMLA to Bone Knight 2019-02-10 23:33:05 -05:00
josteph
49a5acee50 Liberty S6: Give the cave underground time of day. 2019-01-06 23:22:15 +01:00
nemaara
c49536f652 Liberty S2: slightly modified map 2019-01-05 03:29:46 +01:00
nemaara
be587feee8 Liberty S2: modified ai gold and start location 2019-01-05 03:29:46 +01:00
pentarctagon
7034c8f97b Run WML schema validation in travis. Fixes #3709
This adds running the WML schema validation in travis.  It also updates the schema itself and fixes a few WML errors so that core and all campaigns under all difficulties pass the schema validation.
2018-11-24 10:35:22 -06:00
Celtic Minstrel
639787e1c9 Merge pull request #2562 from wesnoth/schema 2018-11-11 13:52:19 -05:00
mattsc
23d313949d Remove AI Controller from campaign scenarios (addresses #3668)
Ideally we would replace it with a more effective and intuitive version at some point, but currently we do not know how to set up AI behavior that both makes sense and is usable in a general setting (without consisting of unit-level control).
2018-11-08 07:15:40 -08:00
Celtic Minstrel
a3d7339871 Liberty: Fix issues found by the schema validator
With this, Liberty is clean of schema errors.
2018-10-23 22:43:32 -04:00
joeylmaalouf
1f1770362e Menu: re-order and re-rank campaigns (including new ranks) (fixes #1222)
(cherry-picked from commit a3a9b72311)
2018-10-07 03:25:07 +00:00
josteph
8965939939 Liberty S8: Fix family reference
According to po comments in S1, Baldras is Harper's mother's brother.

Also change "mom"/"dad" to "mother"/"father" to match the general
medieval setting of dialogs.

(cherry-picked from commit bcb6153b89)
2018-10-07 03:24:45 +00:00
josteph
e32e6d62d1 Liberty S8: Fix ambiguous pronoun
(cherry-picked from commit 4c612400cf)
2018-10-07 03:24:45 +00:00
josteph
7ea5bd4350 Liberty S3: Play orcish war drums
(cherry-picked from commit 8fd1b822db)
2018-10-07 03:24:42 +00:00
josteph
1ca80da763 Fix various typos.
AOI S3: Address Erlornas as "lord" in lowercase as done elsewhere in the
scenario.

(cherry-picked from commit 6a1b59327e)
2018-10-07 03:24:41 +00:00
josteph
e09a765a1c Liberty S3: Add a story part
(cherry-picked from commit e2c591edbd)
2018-10-07 03:24:41 +00:00
Jyrki Vesterinen
2d8f8ea53a Add pofix entries for the recent typo fixes (resolves #3377)
Manual merge of pull request #3490. I also ran pofix.

[ci skip]

(cherry-picked from commit 217eba5f97)
2018-10-07 03:24:24 +00:00
DisherProject
912dfcc9e6 Liberty S8: Fix some event filters
(cherry-picked from commit d13c451afb)
2018-10-07 03:23:50 +00:00
DisherProject
258f4e8faa Liberty S8: Remove unnecessary hidden side
Side 3 was composed by enemy reinforcements. Since they were
spawned on the right corner of the map, and since side 2
was blocked inside Halstead by and [avoid] tag, it was
necessary to add a new hidden side which could move freely
on the map.
If we upgrade the AI, removing the [avoid] tag, this hidden
side becomes unnecessary.

(cherry-picked from commit f32dfaa917)
2018-10-07 03:23:49 +00:00
DisherProject
d222aaf875 Liberty S8: General fix and cleanup to the AI goals
All sides will now head to the central fortress. Orcs
should now be a bit smarter, and they should not suicide
during the morning or the afternoon. The humans in Halstead
will initially remain inside their fortress, until the enemy
arrival.

(cherry-picked from commit e63a15fc91)
2018-10-07 03:23:49 +00:00
DisherProject
18c1b3f7fe Liberty S1-S7: Fire victory when enemies are defeated
Instead of checking whether there are no enemy units left
every time one of them dies, use the "enemies defeated"
event.

(cherry-picked from commit 4ced6c7526)
2018-10-07 03:23:49 +00:00
DisherProject
8eebc4b202 Liberty S1: Filter event by condition instead of using an
if-then clause

(cherry-picked from commit cbe2bcef6b)
2018-10-07 03:23:48 +00:00
DisherProject
f1192706a9 Liberty S5-S6: Replace deprecated keys
"share_maps" and "share_view" have been replaced in
favour of "share_vision"

(cherry-picked from commit ddf9949cff)
2018-10-07 03:23:48 +00:00
Nils Kneuper
4b87d25a54 updated Chinese (Simplified) translation
(cherry-picked from commit cb43b894ee)
2018-10-07 03:21:42 +00:00
Nils Kneuper
d97b0c2e31 remove executable flag from italian translation images
(cherry-picked from commit f9b9d5018f)
2018-10-07 03:21:00 +00:00
Nils Kneuper
cbfb9dfaba updated Italian translation (images)
(cherry-picked from commit 4918a6234e)
2018-10-07 03:20:59 +00:00
Severin Glöckner
ea91d24059 Adjust the weapon names of the heroes to better fit their portraits
[ci skip]

(cherry-picked from commit f1e2e8ce7f)
2018-10-07 03:19:53 +00:00
Severin Glöckner
2239fad1a4 Revert "Liberty: allow to undo one event"
This event is for an AI side

[ci_skip]

This reverts commit 72fda6f564.
2018-03-01 16:12:52 +01:00
Severin Glöckner
72fda6f564 Liberty: allow to undo one event
[ci_skip]
2018-03-01 15:55:16 +01:00
Steve Cotton
1c2968c632 L S8 Give Harper a loyal overlay in Liberty's final scenario
He's been a silver-crowned hero until this scenario, and in
the final scenario he's still loyal with dialogue if he dies,
so make him easily visible to the player.
2017-12-26 08:30:01 -06:00
Celtic Minstrel
25a0d099a9 Enable sorting campaign list in chronological or lexicographical order 2017-08-14 12:36:07 -04:00
Severin Glöckner
1a4cbab08a fixes frames of a few attack icons
[ci skip]
2017-05-14 09:47:19 +11:00
Severin Glöckner
0d03f9b4d4 textdomain changes
many campaigs were using weapon names which already exist in wesnoth-units
2017-02-26 19:49:36 +02:00
ln-zookeeper
a3f1d199a5 L S8: keep view centered on Halstead a bit longer during the intro 2016-08-15 19:16:55 +03:00
ln-zookeeper
471e92cd18 Added a reminder note about how vision range is determined 2016-08-15 18:48:37 +03:00
fendrin
8a9feb10ac Fix several bugs introduced with the FOREACH replacement. 2016-08-06 21:17:01 +02:00
fendrin
7012b998ba L: Replace FOREACH 2016-08-06 06:20:41 +02:00
Jyrki Vesterinen
1e2b6ba92d Revert the campaign changes of commit a74f1054
@zookeeper pointed out to me that spelling event names with spaces is the
standard in WML, especially when setting up event listeners. Thus, changing
spelling of the names of the events fired from WML made the codebase more
inconsistent, not less.
2016-08-05 12:11:11 +03:00
Jyrki Vesterinen
a74f1054ca Always use underscores in event names
Follow-up of 3cbf249b. This commit changes event names to be written with
underscores everywhere where events are fired (or every place I found in a
quick search, anyway).
2016-08-05 08:43:47 +03:00
Celtic Minstrel
b295aab4ba Deprecate {MAGENTA_IS_THE_TEAM_COLOR}
The magenta colour is now the default flag_rgb colour if one is not specified.
2016-08-05 00:49:39 -04:00
fendrin
7e0c853f42 Campaigns: [+units] -> [units] 2016-08-03 22:04:47 +02:00