Commit graph

47 commits

Author SHA1 Message Date
Celtic Minstrel
cc40d5c55b
Move the Merman Citizen and Brawler units to core (#7323) 2023-01-26 22:45:29 -05:00
Celtic Minstrel
0b309a0d6a Lua API: Move wesnoth.as_text into core
This means it's now usable in map generation or plugin scripts.
2021-07-02 14:04:54 -04:00
Pentarctagon
093db78cc7 Add the Plan Unit Advance modification to mainline. 2021-02-13 19:16:37 -06:00
Charles Dang
24f3245cfe Why was [titlescreen_music] in editor/_main.cfg... 2020-12-14 06:47:08 +11:00
Celtic Minstrel
251e6c3f7a Apply the deprecation standard to the new GUI2 API
This also removes backwards-compatibility.lua altogether.
It's no longer correct in the general case to add backwards compatibility code to this file, so removing it entirely avoids situations where compatibility code is incorrectly added there.

In the C++, this removes the commented-out old GUI2 API entries, and
adds show_dialog to the gui module directly instead of moving it in core.lua
2020-09-27 16:44:28 -04:00
doofus-01
182a7bb602
Units - Dunefolk - Falconer branch of Skirmisher line (#4779)
* Units - Dunefolk - first draft at Falconer branch of skirmisher

* Dunefolk - revision to Falconer line

* Units - dunefolk - some progress on falconer standing animation

* Units - dunefolk - attack animations for falconer

* Units - dunefolk - defense and melee (partial) attack anims

* units - dunefolk - WIP lvl3 falconer

* units - dunefolk - revise falconer

* units - dunefolk - animation work on Falconer line

* units - dunefolk - falconer ability diversion revised to affect enemy chance-to-hit. Animation filter/trigger not yet resolved

* units/abilities - dunefolk falconer diversion ability-related animations mechanism

* units - dunefolk - sky_hunter animation frames

* dunefolk/abilities - fix diversion animations to work on die event

* abilities - schema validation induced correction

* abilities - diversion animations - attempt to fix case of undo movement

* units - dunefolk - finish some cosmetic issues for Falconer line

* units - dunefolk - wmlindent

* use on_undo over select in diversionability

undoing can only change the 'diversion' state if the original action also did,
so there is no reason to check it in all 'select' events.

* fixup

* minor clean-up

Co-authored-by: gfgtdf <daniel.gfgtdf@gmail.com>
2020-03-23 17:59:53 -07:00
Celtic Minstrel
4b08a40181 Deprecate wesnoth.set_music 2018-03-17 16:48:02 -04:00
Celtic Minstrel
23aac4f72f Cleanup of fef953a48e
- Fix the rabbit AI
- Enable invoke_synced_command to also call (some) built-in commands
  and give an error message in the case of an unknown command
- Remove some unnecessary implementation details
2018-03-17 16:48:00 -04:00
gfgtdf
fef953a48e remove ai.synced_command
fixes #1649 . ai.synced_command could easily be used to implement all types of
undeteced cheats so it was removed. As a replacement this commit adds a
[custom_command] synced command that just calls
wesnoth.game_events.on_synced_command which calls a lua handler that
must first be set.
2018-03-16 13:43:05 +01:00
Celtic Minstrel
5109a36b56 Revert use of Lua for teleport, leadership, and backstab 2017-06-18 11:40:15 -04:00
gfgtdf
80d27b4584 use lua filter in {ABILITY_TELEPORT}
this way it no longer uses variable substitution

Fixes #1281
2017-06-13 22:51:23 +02:00
Celtic Minstrel
238d70ee22 Allow grouping credits with [credits_group] (except in [campaign])
The core game credits and localization credits are also now stored
in separate files.
2017-05-22 17:22:12 -04:00
Celtic Minstrel
5da2d71a20 Move [micro_ai] implementation to data/lua/wml 2017-05-03 02:45:54 -04:00
gfgtdf
2fa8bc0350 cleanup lua feeding implementation. 2016-05-22 19:41:54 +02:00
Chris Beck
0246026940 move WML [event] impl to lua, fixup core wml vs lua loading order
This commit moves [event] to be implemented in lua/wml-tags.lua.
It turns out that because of some questionable ordering in
data/core/_main.cfg, none of the tags defined in
data/lua/wml-tags.lua are actually defined at the time that core
is read, instead they are defined right after this. This is broken,
the entire wml library should be defined before core is read. Thus
we reorder some directives in data/core/_main.cfg to ensure this.

This commit adds lua callbacks `wesnoth.add_event_handler`,
`wesnoth.remove_event_handler` as well.
2014-12-24 04:21:58 -05:00
fendrin
73843c9e51 NO_TERRAIN preprocessor symbol to allow campaigns not loading core stuff 2013-11-16 16:27:54 +01:00
mattsc
e469df1d50 Move and rename [micro_ai] tag setup file
... to a more logical location given the recent reorganization.
2013-10-30 12:55:08 -07:00
Matthias Schoeck
b138e47184 Introduce 18 different Micro AIs.
This includes the [micro_ai] tag, the code for the Micro AI engines
and 14 test scenarios.  Full documentation at
http://wiki.wesnoth.org/Micro_AIs
2012-12-29 20:05:55 +00:00
Anonymissimus
8b898d26bd rename compatibility-1.8.lua to backwards-compatibility 2012-02-07 23:28:15 +00:00
Ali El Gariani
0c59428b30 Disable terrain-graphics when NO_TERRAIN_GFX is defined.
Activated by TITLE_SCREEN (auto defined when starting title screen)
and now also by NO_GUI.
2010-07-29 20:21:37 +00:00
Ali El Gariani
2727c9d08a Rename MAIN_MENU as TITLE_SCREEN (as in source and also less ambiguous). 2010-07-25 01:34:33 +00:00
Ali El Gariani
3891da6a92 Show the main menu several times faster...
...by skipping terrain rules (useless there)

This also speed up the use of '--load'. Add a new define MAIN_MENU for
this.
2010-07-25 01:24:59 +00:00
Guillaume Melquiond
72f9514746 Removed wesnoth.get_side* functions from the engine.
Made side proxies into a simple array.

Added backward-compatible functions for accessing them.
2010-07-18 16:12:35 +00:00
Eric S. Raymond
0aa99781cf Reindent mainline. 2009-11-23 14:39:03 +00:00
Guillaume Melquiond
c21ea970af Removed redundant unused file. 2009-04-26 08:29:54 +00:00
Guillaume Melquiond
8eed1425e7 Replaced C++ implementation of the [objectives] tag by a Lua function. 2009-04-18 18:38:34 +00:00
Tomasz Śniatowski
bacd286c66 editor2: clean up editor data/core files...
...by moving them to a separate subdirectory, renamed
editor2_tool_hint tag (dropped the "2"), added background music
playlist tag for the editor (FR / bug #11407)
2008-12-28 01:43:23 +01:00
Tomasz Śniatowski
6022234caa Remove the old editor.
This includes removing sources, cfg files, editor targets in build
systems (scons was done already), and removing old-editor only parts
from several other files under data/ and src/. There probably are some
remains of the old editor left.
2008-10-04 12:24:35 +01:00
Alexander van Gessel
941bbdb1eb Remove double include of team-colours.cfg, caught by wmltest. 2008-09-22 01:23:08 +01:00
Tomasz Śniatowski
a806efa0a8 editor2: settings dialog
currently only does lightning settings by having presets and custom
sliders. Functional but still WIP, may have some subtle bugs. Changing
slider values refreshes the underlying map, in a possibly inefficient
way (flicker), but working reasonably. This fills fr#11408
2008-09-17 17:45:10 +01:00
Gunter Labes
68b245e4be added "mixed fighter" to all recruitment patterns involving...
...the Orcish Assassin line

added a newline to the end of some files
2008-09-09 17:53:22 +00:00
Tomasz Śniatowski
d2e03709c4 correctness followup to previous commit 2008-09-07 18:37:44 +01:00
Tomasz Śniatowski
d6bed29636 fix data/ hiccup related to removing an obsolete file,
...fixing map generation issue in editor2
2008-09-07 18:34:49 +01:00
Tomasz Śniatowski
9c2ef7e9c5 editor2: initial step for making the editor able to use various map generators 2008-09-03 14:40:27 +01:00
Tomasz Śniatowski
5c99f2ccb9 editor2: sidebar tweaks 2008-08-16 20:42:19 +01:00
Tomasz Śniatowski
9ec71d467a editor2: set the EDITOR wml symbol so UMC can continue to use it.
Work around how the old editor used the EDITOR symbol
2008-08-12 19:28:39 +01:00
Tomasz Śniatowski
f962ad3664 Allow multiple brushes, loaded from WML...
...(currently they are only displayed, not used in painting, use alt+b
to switch brushes)
2008-07-14 18:42:08 +01:00
Tomasz Śniatowski
d17a469df5 Editor2: hotkey update
(fixed some weird behaviour too, actually use the defaults, conflicts
to be resolved later).
2008-07-14 17:41:01 +01:00
Tomasz Śniatowski
d0d3550bc2 config loading for editor2 2008-06-12 08:08:07 +01:00
Lari Nieminen
2fe1217688 Include the core macros also when the editor starts...
...to prevent it from choking when parsing UMC content.
2008-03-30 10:09:58 +00:00
Eric S. Raymond
92fe16e9ec Add export-property comments to _main.cfgs.
These will control whether or not wmlscope expects each namespace to
export names.  Presently, core exports but campaigns do not.
2008-02-27 11:11:54 +00:00
Nils Kneuper
c19e3c2311 added a default textdomain definition to all .cfg files 2007-07-06 09:00:49 +00:00
Eric S. Raymond
08c6876453 Almost all WML files are now uniformly indented.
There are a few exceptions that need further work or careful
examination; UtBS, the tutorial, and the terrain macros.
2007-06-29 10:36:10 +00:00
Lari Nieminen
7f02e3438a Moved all the rest of the .cfg's in core/ containing only macro definitions...
...to core/macros/.
2007-06-10 11:17:28 +00:00
Ali El Gariani
04de610e7b use the new EDITOR tag to not load useless game data (units...)
when starting the editor

This seems to greatly improve the editor start time
Also use it to skip editor-groups.cfg when starting the game
Adding a GAME tag is probably nicer, but seems a bit more complex
2007-05-22 01:17:02 +00:00
Benoît Timbert
032317034e Move multiplayer stuff under multiplayer/ (part 1/2) 2007-05-21 17:54:05 +00:00
Eric S. Raymond
d128bd8370 More reorganization.
Main effect is to put terrain.cfg and terrain-graphics near each other
as eleazar requested.
2007-05-17 05:07:36 +00:00