61249 Commits

Author SHA1 Message Date
mattsc
25e10121f5 Lua AIs: fix bug occurring when number= in an attack is set to zero
Apparently, when this is the case, the number key is not included at
all, rather than set to zero, when the Lua table containing the attack
information is retrieved.
2015-05-19 19:54:41 -07:00
mattsc
c538e5f984 Micro AIs: issue warning if side defined in [micro_ai] tag does not exist
Previously this would cause a whole series of Lua error messages and,
potentially, some code not being executed.
2015-05-19 19:44:18 -07:00
mattsc
96a1fc963d Xcode project file update 2015-05-19 18:28:32 -07:00
mattsc
2a0bfa8c1e Xcode project update for 1.13.0
Version number and ingame changelog
2015-05-19 18:28:23 -07:00
gfgtdf
58228b5d28 clear the redo stack when toggeling shroud updates
The previous behaviour causes OOS, assume this situation:
Player1s turn, DSU is activated, player1 moves  a unit and then undoes
the move. then he deactivates dsu and redoes the move. The result is
that the move did not uncover shroud (but it should since the move was
now done after DSU was deactivated).
2015-05-20 00:50:28 +02:00
gfgtdf
138f7c92c4 refactor undo_action class
First we split the undo_ation into subclasses (undo_action_base, undo_action
and shroud_clearing_action) so that undo actions that don't clear shroud don't
contain the route and view_info data.
Also the non undoable actions now don't need to implement undo() and redo()

Second we move the undo action classes to different files.
2015-05-20 00:50:26 +02:00
gfgtdf
cd756b74db ignore [allow_undo] in wml menu items
becasue it casues OOS.
2015-05-19 00:37:18 +02:00
gfgtdf
0c5c72b146 simplify replay::undo_cut 2015-05-19 00:37:16 +02:00
gfgtdf
02fe6ca39b remove unused code
stop_x/y was never writte, so i removed code that reads it.
Also i disabled variable substitution for map_locations in replay data
since it is never used.
2015-05-19 00:36:27 +02:00
Elvish_Hunter
3ff2983a33 ImagePathWML: NEG() now accepts argument values
This allows to invert a single channel, or to perform solarization effects
Final part of the merge of PR #394
2015-05-16 11:34:49 +02:00
Charles Dang
c6d6114a8c NR S8a: fixup bbbb94346aec, forgot gold carryover 2015-05-14 12:25:49 +11:00
Charles Dang
bbbb94346a NR S8a: made saving the princess a primary objective
This also properly gives carryover bonus on doing so
2015-05-14 12:06:35 +11:00
Charles Dang
edd8cae6b0 NR S9a: fixed an incorrect speaker in troll sighted event 2015-05-14 11:43:31 +11:00
Charles Dang
901646f12c NR S5.1: removed a redundant dialog line 2015-05-14 07:28:09 +11:00
Charles Dang
db30258b4f NR S5.1: fixed incorrectly placed impassable overlays for the gates 2015-05-14 07:18:28 +11:00
Charles Dang
aab424ce1e NR S5.1: fixed an incorrect loc for the main door to Malifor's study 2015-05-14 07:08:39 +11:00
Charles Dang
719ad3ff49 NR S5.1: fixed a spider spawning inside a wall in HARD 2015-05-14 07:04:10 +11:00
Charles Dang
9270236d94 NR S5.1: fixed the hidden entrance to the treasury 2015-05-14 06:54:17 +11:00
Charles Dang
01d6a42f8d NR S5.1: made the second initial treasury guard a dragug too 2015-05-14 06:51:53 +11:00
Charles Dang
74995973dd Allow [object] modifications to be applied without writing to unit config 2015-05-13 02:22:36 +11:00
Charles Dang
1d7f0be080 NR S2.1: dropped shroud from side 2 trolls 2015-05-12 08:50:03 +11:00
Charles Dang
801f70c2f7 NR S5.1: fixed/added a bunch of incorrect/missing gold triggers 2015-05-12 08:48:57 +11:00
Charles Dang
cae77aee89 NR S5.1: made one of the Revenants near the starting location speak in start event 2015-05-12 08:35:45 +11:00
Charles Dang
4e5927f175 NR S4: fixed a Ghoul spawning outside the river 2015-05-12 08:30:47 +11:00
Groggy Dice
d1013cc052 wmliterator: fix unterminated loop in lua-strip
An old add-on triggered a wmliterator crash with this comment:

    #>>>> !!!!! REMOVE THIS AFTER TEST !!!!! <<<<#

The traceback showed that the crash came from the lua-stripping
code, which interprets "<<" as the start of a lua string. But below
it is code to remove quoted strings, and it doesn't crash, even
though there are cases where authors forgot to close a quote.

Two key differences stood out in the otherwise similar second
code: only looking for the endquote string in the text after
beginquote, and testing that endquote was less than 0, not -1.

Changing both gets the loop to terminate. Making it search the
text only after "beginquote+2" means that ">>" will no longer
be found, giving endquote a value of -1. But -1 is not less than
-1, so that must be changed to " < 0" to close the loop.
2015-05-11 02:33:20 -04:00
Elvish_Hunter
31436e85bb [move_units_fake]: fixed a segfault 2015-05-09 21:55:56 +02:00
Charles Dang
cea5239bb5 TB S2: cleaned up code 2015-05-08 18:17:17 +11:00
Charles Dang
b9b71205d7 TB S1: cleaned up code 2015-05-08 18:15:59 +11:00
Charles Dang
417b83f578 New Dwarvish Ulfserker standing animation by Kwandulin 2015-05-08 00:46:48 +11:00
Charles Dang
e8aa11f7e8 New icon for an ankh necklace 2015-05-05 18:56:09 +11:00
Elvish_Hunter
7b70943267 DW and UtBS: make the Stun effect expire at the unit's side turn end 2015-05-04 12:51:24 +02:00
Elvish_Hunter
56329ac839 ImagePathWML: added BW() (black and white) function
Partial merge of PR #394
2015-05-03 11:20:43 +02:00
gfgtdf
d4b52e1022 remove unused code 2015-05-02 00:36:50 +02:00
Elvish_Hunter
e8d58f4f1f Added support for [object] duration=turn end 2015-05-01 11:46:42 +02:00
Charles Dang
10abcb9b17 New Draug standing animation by Picka79 2015-05-01 11:26:18 +11:00
Bär Halberkamp
e3122f148b EI: More updates to S9 2015-04-30 19:12:39 +02:00
Bär Halberkamp
743e16865e EI: oops 2015-04-30 18:44:02 +02:00
Charles Dang
add3ecc176 New Bone Shooter standing animation by Kwandulin 2015-04-30 19:22:44 +11:00
Charles Dang
ce2d859e2d DiD S7: flipped filter for undead sighted event
Previously, we were saying, 'when side 1 sees side 2', when it should be the opposite
2015-04-30 17:51:51 +11:00
Charles Dang
61d0fe448b DiD S10: restore old (slightly modified) behavior for keeping Volk in-castle 2015-04-30 15:43:50 +11:00
Charles Dang
972fe21cac Merge branch 'master' of github.com:wesnoth/wesnoth 2015-04-30 15:16:23 +11:00
Charles Dang
8ce9b665bd NR S2.1: don't charge upkeep for Hamel's Stalwart guards 2015-04-30 15:15:07 +11:00
Chris Beck
bce5fb22e5 fixup HEAD^
use tab characters between lua print arguments, and no trailing tab
2015-04-29 17:18:03 -04:00
Chris Beck
c095029d68 lua print: put a space between items 2015-04-29 13:35:11 -04:00
Bär Halberkamp
d90c930bd8 EI: little things in S8 2015-04-29 13:30:49 +02:00
Bär Halberkamp
c8adbf18c5 EI: First updates to S9 2015-04-29 13:30:49 +02:00
Bär Halberkamp
37c6dcde1d EI: Updated the map for S9 2015-04-29 13:30:49 +02:00
Bär Halberkamp
8b2f0deccc EI: small updates to the S7b map 2015-04-29 13:30:49 +02:00
Elvish_Hunter
256bffafcc changelog entry 2015-04-28 22:11:16 +02:00
Elvish_Hunter
1f6603e73b test scenario: used [filter] status= instead of [filter_wml] 2015-04-28 22:09:21 +02:00