73116 Commits

Author SHA1 Message Date
Wedge009
6ef7dd77ab Properly update MSVC project files for 3d1e3b36 and e0234608.
[ci skip]
2018-10-22 15:33:18 +11:00
mattsc
09e3891668 ai_helper.move_unit_out_of_way: prevent potential for divide-by-zero
dx = dy = 0 is a perfectly acceptable choice of values when there is no preferred direction.
2018-10-21 19:30:34 -07:00
newfrenchy83
7f7217cf15 Implement certain weapon specials in the engine
Support ['specials'] in abilities except plagues, heal_on_hit and swarm, which emulate the weapon specials with [affect_adjacent] in option and the possibility to affect all weapons filtered (used with 'Initiative' in HttH or 'Formation' in UtBS). (Don't put filter_weapon in 'filter_self/opponent' like in  true weapons specials.)

Closes #3630
Closes #3620
2018-10-21 20:14:15 -05:00
josteph
1f9a614dbc en_GB: Fix broken link 2018-10-22 00:46:08 +00:00
josteph
5e92b8e80d Help: Fix some broken links in the Gameplay section.
The abilities help topic id structure is intentional, according to
generate_ability_topics() (src/help/help_impl.cpp:514).
2018-10-22 00:10:28 +00:00
josteph
c9d4dde5ae help: Add "Great River" topic
Part of #2963
2018-10-22 00:10:28 +00:00
josteph
6dacbb9e46 help: Fix broken link
Reported in #2963
2018-10-22 00:10:27 +00:00
josteph
606ac386e1 Help: Fix fatal error in the "Recruiting and Recalling" page.
The error message was, upon opening the page:

```
Parse error when parsing help text: 'Error when parsing help markup as WML: 'Unexpected characters after variable name (expected , or =)
at <unknown>:2''
```

The <bold> tag in question can be seen on old_master_20181015 here:
71a6daf961/data/core/help.cfg (L199)
2018-10-22 00:04:35 +00:00
gfgtdf
a4b2818bc5 fix not generating leaders when loading a start of scenario save
fixes #2660
2018-10-22 01:34:23 +02:00
gfgtdf
eba882b957 implement [lua]name=, fixes #3381 2018-10-22 01:34:21 +02:00
gfgtdf
50d94b3388 modifiable propertly game_config.do_healing
this controls whether during the next turn start the game will
heal units. I feel like 'game_config' is not a that good place
name for this but it is afaik the only place for those variables.
2018-10-22 01:34:20 +02:00
josteph
1876433e8f Sidebar: Give vision a tooltip since it shows as "visi…" with no way to see the actual value. 2018-10-21 22:20:19 +00:00
Steve Cotton
30764fa764
DiD S12: Alternative campaign finish by letting the hero take the book
On the third and subsequent playthroughs of Endless Night, Mal Keshar
has learned from the ending of SotA, and can leave the book to be
taken by the foolish hero's army.  This text doesn't handle the unit
that picks up the book being the hero themselves, but the hero seems
to be using the normal boss AI of staying near the castle so that
probably won't happen anyway.

He learns how to lichify level 3 necromancers at the start of the
first playthrough, which fits better with the backstory of the book.
The png icon for this is copied from SotA.

This would close issues #3165 and #3167.

[ci skip]
2018-10-21 14:33:08 -05:00
josteph
20b76b32c0 Healing: Update changelog 2018-10-21 17:36:03 +00:00
josteph
00c2ed6aa9 Healing: Perform rest healing on turn 2. 2018-10-21 17:35:59 +00:00
josteph
2f62302dc7 Healing: Add a unit test. 2018-10-21 17:34:52 +00:00
josteph
5ce2f2df37 Healing: Instead of hardcoding a turn-and-side-number check, indirect through a boolean.
This boolean may be exposed to WML in the future (ask gtgtdf).
2018-10-21 17:16:53 +00:00
josteph
024f3e1531 Healing: Don't heal on side 1 turn 1.
Discussed on https://github.com/wesnoth/wesnoth/pull/3562#issuecomment-423708856
2018-10-21 17:16:23 +00:00
josteph
6df83fefa7 Healing: Do heal on turn 1.
Discussed on the forums: https://r.wesnoth.org/t48817
2018-10-21 17:16:22 +00:00
josteph
9eed54dc9a TSG S1: Punctuation fix 2018-10-21 17:10:23 +00:00
josteph
23bdbae161 Don't show time of day under shroud
In the test scenario mouseover (4,19) to see the difference.
2018-10-21 17:08:48 +00:00
gfgtdf
0830d776ec sdfsdf 2018-10-21 17:42:24 +02:00
gfgtdf
eee9214e9a small game_lua_kernel cleanup 2018-10-21 17:42:24 +02:00
gfgtdf
5d267578f4 add goto_x/y to unit lua proxy 2018-10-21 17:42:24 +02:00
gfgtdf
cfd81d38be add terrain_mask function to lua gamemap object. 2018-10-21 17:42:24 +02:00
newfrenchy83
b43c132b70 Update Code::Blocks project (#3640) 2018-10-21 16:24:20 +03:00
Martin Hrubý (hrubymar10)
e0f2ebeb5c
Fix Xcode build 2018-10-21 10:39:44 +02:00
gfgtdf
6bdbcc1644 make max_moves a modifiable unit property 2018-10-21 03:06:09 +02:00
gfgtdf
7d93ce1604 add luaW_table_get_def 2018-10-21 03:06:08 +02:00
gfgtdf
082aa2afe2 add z_order attribute to wesnoth.add_tile_overlay fixes #3156
this probably won't work for halos yet.
2018-10-21 03:06:08 +02:00
gfgtdf
262549433f make wesnoth.simulate_combat a little more save against segfaults
it now keeps a unit_ptr to the unit to make sure the unit is not deleted
during whatever lua code the battle_context constructor calls. This can
be done because since the unit ctor refactor all unit objects are owned
by a unit_ptr (created by unit::create).

It might also be possible to refactor out the "unit * c_ptr" member of
lua_unit.
2018-10-21 03:06:08 +02:00
gfgtdf
dccda8294b allow wesnoth.simulate_combat to have defenders not on the map.
just like it does for attackers.
2018-10-21 03:06:07 +02:00
Celtic Minstrel
d10c51feb1
Make the fire terrains actually illuminate their hex
This covers the wall torch, the campfire, and the brazier.
2018-10-20 15:36:17 -05:00
josteph
b1ebfea07a THoT S5: Unhide the villagers side once they appear. 2018-10-20 18:07:28 +00:00
nemaara
172009fd23
TSG: Story and dialogue revisions
Closes #3597
2018-10-20 12:35:41 -05:00
newfrenchy83
bcbac9fe33
Fix animation truncated after message
Closes #1617
Closes #3608
Closes #3631
2018-10-20 10:41:48 -05:00
gfgtdf
b340ce40ba fix dupicate function definition. 2018-10-20 13:29:32 +02:00
gfgtdf
e0234608ae fix pathfind code dublication. 2018-10-20 13:29:30 +02:00
gfgtdf
856ac1cded show more scenarios in choose_level debug command
the old code didn't work well for mp campaigns that dynamicially set the
next scenario in endlevel. The new code just shows all scenarios that
belong to the same addon, since this is a debug command it better to sho
a little too much than not to show all scenarios of the campaign.
2018-10-20 13:29:26 +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
gfgtdf
18edca91c6 mapgenerator: add debug info 2018-10-20 13:29:21 +02:00
gfgtdf
2d5382f54c allow lua mapgen to use the default mapgen. 2018-10-20 13:29:19 +02:00
gfgtdf
3d1e3b36df add lua terrainmap object 2018-10-20 13:29:16 +02:00
gfgtdf
1671975859 deploy string_view 2018-10-20 11:49:30 +02:00
gfgtdf
8ac4ee6ff8 add option to disable wml tests in msvc.
they just take way to long.
2018-10-20 11:43:03 +02:00
doofus-01
ff3996da62
adding hide_help key to defeated corrupted elf 2018-10-19 17:39:25 -05:00
doofus-01
221312c87f
revising Garak weapon special names, in part because inactive name issue was fixed, but non-default names are still better 2018-10-19 17:38:43 -05:00
doofus-01
f3500620ad
Scenario 3 adjustment to turn 1 player unit recall and adjustment to evil Garak death events 2018-10-19 17:38:06 -05:00
josteph
846e5aff4e AToTB: Don't talk about undead's unusual resistances when attacking a Walking Corpse. 2018-10-19 20:10:42 +00:00