67 Commits

Author SHA1 Message Date
András Salamon
f93fa922ff fix AI not getting rest-healing, leading to replay OOS 2005-08-11 14:42:36 +00:00
András Salamon
668b1a5bab tweak and refactor end of turn warning semantics 2005-08-01 15:18:37 +00:00
András Salamon
ef18aaab72 fixed spurious warning when loading a saved game and ending turn (#12986) 2005-07-31 23:56:05 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
John W. C. McNabb
aa8caf2760 new hotkeys 2005-05-18 14:06:30 +00:00
Guillaume Melquiond
37d69a8bbb A little cleanup. 2005-04-29 21:37:26 +00:00
Philippe Plantier
91f7775230 Fixed traits not being always translated. 2005-04-07 21:16:50 +00:00
Philippe Plantier
0200f44e86 Added the "generate_description" variable in the [unit] tag.
If set to yes, this tag automatically generates a user_description for
a unit.

Fixed scenarios so they do not include translatable user_descriptions
corresponding to the unit descriptions, but instead use a generated
description.
2005-03-28 15:00:13 +00:00
Philippe Plantier
048729c065 Made tokenizer.cpp include gettext.hpp
Added support for units generated with [unit] tags in [event]s to have
their names generated automatically.
2005-03-28 14:07:31 +00:00
Philippe Plantier
4cc69d5cb7 Fixed bug #11214:
changed [terrains] being hidden by a side's starting position.
2005-03-19 21:04:46 +00:00
Yann Dirson
d7174db26f include cleanup: unit*, variable 2005-03-10 22:57:23 +00:00
Dave White
c0d61780d0 added dextrous trait for elves.
Removed loyal trait as a random trait; can only be given by scenario
designer. loyal units are free of upkeep.
2005-02-28 03:44:44 +00:00
Yann Dirson
81ffd3dc99 use fixed-point computations...
...so owners of FPU-less machines can still enjoy the game
2005-02-09 23:32:01 +00:00
Dave White
af495ff5e5 took zocs away from level 0 units 2005-01-01 00:44:50 +00:00
Dave White
a469fc31fb made it so that click-to-attack makes the unit move...
....to the nearest hex to the cursor
2004-12-30 02:52:37 +00:00
Dave White
e3bb865eed fixed defender animations 2004-12-29 23:11:45 +00:00
Guillaume Melquiond
f1dc22f839 Quick and dirty hack to translate the 'system default language' string. 2004-11-30 21:14:13 +00:00
Philippe Plantier
e02e3ae0f5 Applied patch 3470 : support for unrenamable units.
Made some units "unrenamable" in HttT, for demonstration. I'll let the
scenario designers apply the changes in their scenarios.
2004-11-01 19:43:06 +00:00
Dave White
04ed3003f2 made it so units with the scepter can be displayed holding the scepter;
added new sea serpent images
2004-08-29 20:33:01 +00:00
Dave White
896b85613d made it so 'gender' works with move_unit_fake 2004-08-13 03:11:31 +00:00
Dave White
393ec6cd91 made it so you can't see invisible units when they move.
Limited length of schema items in compressed WML to make a DoS attack
harder to perform
2004-08-07 17:21:59 +00:00
Dave White
5bd639bf41 added female Mage and Red Mage images and implementation 2004-08-01 00:14:13 +00:00
Dave White
289c0d576a fixed the 'skip' button in the map part of the intro sequence (CVS internal);
made it so moving the mouse to the edge of the map won't scroll the
game when in windowed mode
2004-07-31 02:55:42 +00:00
Dave White
8997cfc402 rebalanced various scenarios; fixed bug with roles not working properly 2004-06-26 20:57:49 +00:00
Dave White
27550733d2 added engine support for max-level units advancing further 2004-06-24 15:13:26 +00:00
Dave White
79a5f2a21e added support for defensive animations 2004-06-23 15:54:16 +00:00
Dave White
f0df140327 added new 'load' dialog.
changed behavior of pressing 'space' to end a unit's turn
2004-06-10 00:35:45 +00:00
Dave White
39b1b25ffe added in Wesbowl multiplayer scenario 2004-05-10 20:47:03 +00:00
John B. Messerly
373fd7b49e Fixed a bug with the validate_side(...) check in unit::unit(...).
The symptom was failure of any scenario to load which has a
'move_unit_fake' command in it. The check is now bypassed for "dummy"
units.
2004-05-08 00:55:38 +00:00
Dave White
619ad5ac83 made searching highlight the hex which matches the search 2004-05-06 19:30:32 +00:00
John B. Messerly
08e46b18d9 Added a "continue move" action.
There are four parts to this patch:

1) add the action to the usual places 2) add a gamemap::location to class unit,
which stores the location we were trying to move to, 3) clear this
location on end-of-turn, or if the unit moves again this turn, and 4)
if a move is interrupted, reslect the unit's hex.

The new hotkey is 't'. To use this feature, select a unit that had its
move interrupted by seeing allies/enemies, and right click >> "Continue
Move", or press the 't' key.
2004-05-04 01:50:19 +00:00
Dave White
0310f739d6 added in patch to allow 'image_healing' and 'image_leading' animations...
...for units performing those actions
2004-04-30 20:01:51 +00:00
Dave White
db0492bf45 added [store_unit], [unstore_unit], and [while] tags to WML 2004-04-30 04:57:12 +00:00
Dave White
accbc0f772 code refactoring - simplified the 'display' module 2004-04-22 18:58:59 +00:00
Dave White
0bec75d1b9 patch to map editor for proper key handling 2004-04-21 13:37:44 +00:00
Dave White
d08630afe7 gave ability for terrain to have multiple aliases 2004-04-12 20:04:52 +00:00
Dave White
5b35e46674 added diagnostics which log all network messages 2004-04-06 21:26:41 +00:00
Isaac Clerencia Perez
793959b474 Units get healed by resting also if they ended turn with space without moving 2004-03-24 01:29:35 +00:00
uid67456
a1cf9c00a6 get_resting -> is_resting 2004-02-18 10:46:16 +00:00
uid67456
9addc72adb Added member variable resting_ and set_resting and get_resting functions 2004-02-18 10:44:00 +00:00
uid68803
c2217e7626 fixed bug where temporary items were lost on level up...
...or when saving and reloading the game
2004-02-11 14:09:18 +00:00
uid68803
5cc0ad9ac5 fixed compile error 2004-02-04 17:32:51 +00:00
uid68803
ae203d95cb added turn-to-stone special weapon ability
attempt to fix STL-related compile error on Slackware
2004-02-02 20:07:40 +00:00
uid68803
f48cd4f5d9 fixes to the theme.
Fixed poison healing bug, and made it so that poisoned units are shown
with a green hue
2004-01-30 21:48:10 +00:00
uid67456
ed879a0248 Some changes in invisibility code
* Added find_visible_unit, to find a visible_unit by location in a
unit_map
2004-01-30 20:08:21 +00:00
uid67456
5b8cc48ae0 Invisible units are discovered by nearby enemies (i.e., adjacent tiles) 2004-01-29 21:07:46 +00:00
uid67456
f80e2924cf Nightstalk ability added 2004-01-28 23:43:38 +00:00
uid68803
1c3e548d92 restructure of AI code 2004-01-13 18:21:10 +00:00
uid68803
3460a2cfb1 made shroud load properly 2003-12-31 18:23:32 +00:00