Commit graph

932 commits

Author SHA1 Message Date
Bär Halberkamp
d228bd5c1d Change colors of ToDs 2016-09-24 15:02:30 +02:00
Jyrki Vesterinen
16c1b86443 Correct titles of music tracks
Not all file names match the titles exactly. I read the full titles
from metadata of the Ogg Vorbis files.
2016-09-24 10:32:10 +03:00
Charles Dang
5857098ab7 Provide translatable titles for all mainline music tracks
This is so they don't show up by filename in the editor's music selection menu
2016-09-24 15:13:22 +11:00
gfgtdf
486e3ec1ee fix comment 2016-09-05 15:09:39 +02:00
mattsc
d781e6263a High XP attacks: adapt other AIs to existence of new CA
This means:
1. Adding the new CA to AI configs
2. Removing it whenever the combat CA is removed
3. Preventing conflicts for AIs that previously used overlapping scores
2016-09-03 20:00:12 -07:00
mattsc
af0f49ae9a High XP CA: add missing braces to CA definition
This did not keep the AI from working correctly, it just made it
slightly less efficient.
2016-09-03 07:06:18 -07:00
mattsc
6950ee1dd0 New high_xp_attack candidate action for default AI
This CA performs attacks on enemy units so close to leveling that the
default AI's combat CA would not attack them (with some exceptions).
This is meant to keep players from being able to exploit this known
weakness of the default AI.
2016-09-02 20:22:17 -07:00
Gregory A Lundberg
15c761ec75 HAS_NO_TURN_LIMIT objectives macro
A convenience macro to add a standardized note to the objectives pointing out there is no turn limit.
2016-08-19 20:06:13 -05:00
ln-zookeeper
d2f528eec9 Prevent extraneous "="'s from appearing in some AI controller menus 2016-08-15 12:04:50 +03:00
Charles Dang
7bfd1ab973 Merge pull request #722 from GregoryLundberg/GL_unique_items
Unique items: don't be a pig
2016-08-08 09:22:00 +11:00
Jyrki Vesterinen
d4e6d0bf2b Fade out music on scenario start and on disabling it 2016-08-07 18:54:33 +03:00
fendrin
8a9feb10ac Fix several bugs introduced with the FOREACH replacement. 2016-08-06 21:17:01 +02:00
fendrin
8544320b58 Replace FOREACH 2016-08-06 06:20:41 +02:00
Charles Dang
491fa91906 Deprecated FOREACH and NEXT
These feature unbalanced WML and have been replaced by proper tags.
2016-08-06 11:08:48 +11:00
Charles Dang
ea1bb2b31c Deprecate MAKE_AI_SIDE_PERSISTENT
This macro was obviously simplified in the past (see unused parameter) and is no longer needed.
2016-08-06 10:47:02 +11: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
Charles Dang
a6dd6c668c Ran wmlindent and fixed badly formatted code 2016-08-05 13:46:39 +11:00
Gregory A Lundberg
09e124aa8e Unique items: don't be a pig
And the Lord said, "Thou hast already consumed My Holy Water, thou needest another not."

And, hearing the Word of the Lord, Posieden said, "Yo! Storm Trident! Dude, look in your hand!"
2016-08-02 14:58:09 -05:00
Bär Halberkamp
4e71bbe448 Generate trait help instead of hardcoding
Introduces a new key "help_text=" in [trait]
2016-07-29 18:44:10 -04:00
Celtic Minstrel
7286ea8e0f Merge pull request #661 from spixi/name_and_map_generator
Improvements in the name and map generators
2016-07-18 01:10:46 -04:00
Spixi
f96f86245e Improvements in the map and name generators
- Implement a way to escape special characters {|} in the CFG generator
- Eliminate null pointers to name generators
- Invalid generators now throw exceptions
- Name generating rules for different terrain elements can now be specified
  (The defaults in english.cfg are still used)
2016-07-17 23:42:19 -04:00
Gregory A Lundberg
010f943a40 [option]message= deprecated, use label=
According to the Wiki, since 1.13.2 message= is an alias for label=.

Using message= provokes a warning about it being deprecated.

This replaces message= with label= in the entire mainline (where it had not already been changed).
2016-07-03 13:41:44 -05:00
gfgtdf
2ba7ad5c43 move feedung event to lua
this has 2 advantages:
1) It decreased savefile size since the event is no longer sotred in
each savefile.
2) The ABILITY_FEEDING no longer assumes its used from within
[abilities]
2016-05-20 14:42:49 +02:00
gfgtdf
a1b9469eed remove RECALL_AI_SIDE
This macro causes OOS because it changes the gamestate during the unsynced ai_turn event.
Also it doesn't handle custom recall costs.

This commit also fixes MAKE_AI_SIDE_PERSISTENT. But i think this macro should be removed too since just writing 'persistent=yes' in [side] is much easier to understand than using this macro.
2016-05-11 19:24:20 +02:00
ln-zookeeper
dba586ce53 Rewrote feeding's code to give units only one object, not one per kill 2016-04-23 21:44:30 +03:00
Celtic Minstrel
6b8b83c90d Female names grammar for the Khalifate
(Loosely based on a list of female Arabic names from behindthename.com)
2016-04-15 15:51:25 -04:00
Dugy
f84e8f4795 Added a new way to generate unit names, using rules of a context-free grammar. 2016-04-11 22:14:21 +02:00
mattsc
f161a3cc1c Fix AI_FORMULA_AI_EXPERIMENTAL_RECRUITMENT macro
This also deletes the AI_SIMPLE_FORMULA_AI_EXPERIMENTAL_RECRUITMENT
macro. There is no point in keeping both of them.
2016-03-26 15:34:39 -07:00
Celtic Minstrel
af9be371da Remove old move-to-targets CA and move new one to default 2016-03-24 12:32:34 -04:00
mattsc
ae8df114f6 Fix indenting 2016-03-24 05:27:45 -07:00
Celtic Minstrel
1d7c1c74f6 Improve backwards compatibility for Lua AI
This changes the following:
- Fixes the experimental AI, without changing any of its code except for that in the [engine] tag
- Returns a dummy self from the dummy Lua engine, so that external CAs are more easily switched to using [params]
- Changes the order in which parameters are passed to AI component code. The order is now:
        state/self,    params,    data
2016-03-22 07:22:22 -07:00
Celtic Minstrel
28937124f3 Remove [goal]name=protect and add [goal]name=target_unit
- name=protect was a synonym for protect_location, which I consider confusing when name=target refers to a unit
- name=target_unit is of course a synonym for target, added for greater consistency of syntax
2016-03-22 07:22:22 -07:00
Celtic Minstrel
9c2027a8d8 Remove version key from AI configs
This has a lot of cascade effects and may remove support for some old syntaxes, such as [protect_unit].
2016-03-22 07:22:22 -07:00
Celtic Minstrel
c761a80bd5 Restore the new implementation of the backstab weapon special
This reverts commit e0ac69ce96.
2016-03-06 18:29:17 -05:00
ln-zookeeper
e0ac69ce96 Revert parts of 12c96a94 to fix doubled backstab damage in right panel 2016-03-04 23:18:20 +02:00
CelticMinstrel
b5b907afd3 Include all components in COLOR_* macros 2015-12-15 10:45:55 -05:00
Charles Dang
65c0df2343 Updated COLOR_* macros to use color= 2015-12-16 01:26:04 +11:00
gfgtdf
ab1a4629a9 rename [filter] -> [filter_location] in [random_placement] 2015-12-10 01:43:32 +01:00
gfgtdf
f329b1e431 fixup random_placement patch 2015-12-08 01:13:14 +01:00
gfgtdf
a9f141c58e fixup SCATTER_UNITS
was broken in 9d656ad755
2015-12-07 22:40:26 +01:00
gfgtdf
dc786dc181 add tag [random_placement]
and use it to implement SCATTER_IMAGE,SCATTER_EMBELLISHMENTS and
SCATTER_UNITS
2015-12-07 21:49:09 +01:00
Charles Dang
2775d3df4d Minor simplification of FORCE_CHANCE_TO_HIT 2015-10-04 13:52:23 +11:00
Charles Dang
fd098e4b62 Simplify HIGHLIGHT_IMAGE using the new [repeat] tag 2015-10-04 04:30:38 +11:00
Celtic Minstrel
9fb175c9d6 Use new looping tags to implement loop macros 2015-10-01 13:37:55 -04:00
Charles Dang
dd0b2104a5 Deprecated MENU_IMG_TXT and MENU_IMG_TXT2 2015-10-01 21:10:27 +11:00
Charles Dang
bd6467d166 Converted mainline campaigns to use new difficulty syntax 2015-09-29 15:35:40 +11:00
Charles Dang
bec40a3c39 Merge pull request #483 from Wedge009/Spelling_Corrections
Spelling and Grammar Corrections
2015-09-20 07:07:00 +11:00
Celtic Minstrel
7ca65c819e Clarify changelog 2015-09-19 15:41:23 -04:00