1
0
forked from 0ad/0ad
Commit Graph

43 Commits

Author SHA1 Message Date
1c541db46b Health regen fix for ranged attack.
This was SVN commit r3410.
2006-01-23 03:55:35 +00:00
d5a4c87dcc Fixes to the melee/ranged attack split.
This was SVN commit r3404.
2006-01-22 11:55:47 +00:00
pyrolink
b1537950e2 fixes
This was SVN commit r3400.
2006-01-22 11:08:27 +00:00
pyrolink
0e861e5ab1 Thank Stuart for the new attack properties (split into ranged and melee). Also, if running, the unit will use crush damage instead of melee.
This was SVN commit r3395.
2006-01-22 08:51:34 +00:00
b32a8361e5 AI stance properties and extended animal templates.
This was SVN commit r3390.
2006-01-22 05:28:41 +00:00
pyrolink
5383104a4f Added health regen/decay with time delay, corrected continual run bug (once running, disregards reorders to walk until destination reached).
This was SVN commit r3377.
2006-01-21 11:01:08 +00:00
c85551a8b0 Renamed processAttack, entityEventAttack, entityDamage, etc to avoid confusion since several people didn't like the functions having different names than the properties of the entity object. Now the generic action handlers are called performAttack, performGather, etc and the damage function is simply called damage.
This was SVN commit r3374.
2006-01-20 21:37:45 +00:00
30b83db67b Moved Run up to affect other units. Also added an Iberian house, which for some reason went AWOL during the entity revision.
This was SVN commit r3368.
2006-01-18 03:31:21 +00:00
pyrolink
01ff2fdf3b Secondary order script support; run order addition
This was SVN commit r3362.
2006-01-16 10:55:01 +00:00
98496f2434 Added Matei's instructions to add a new generic order to the entity script. Not much of a contribution, but every little helps, eh? :)
This was SVN commit r3360.
2006-01-16 02:01:24 +00:00
NoMonkey
cf224a6267 This was SVN commit r3357. 2006-01-13 05:00:55 +00:00
NoMonkey
d261d33bab This was SVN commit r3352. 2006-01-12 10:15:20 +00:00
66d780eb49 Some fixes to the resource pool counters to make them dynamically lengthen based on caption length, and to adjust Housing / Population when buildings and units are created. (It probably doesn't yet deny creation of a unit if it would exceed population limit, though.) Also fixed a bug where an attempt to modify a resource value failed if it was zero.
This was SVN commit r3351.
2006-01-11 15:12:41 +00:00
9a7fb2d090 A few more manual fixes.
This was SVN commit r3348.
2006-01-09 15:58:42 +00:00
a08bf7b52e Fixed some glitches in my entityInit code. Changed erroneous UP references to XP and promotion.
This was SVN commit r3344.
2006-01-08 14:01:10 +00:00
pyrolink
8f7202f00b Entities default to run speed = 0
Notification event

This was SVN commit r3340.
2006-01-08 08:23:59 +00:00
0a3e9ec537 - Added pause game functionality.
- Removed CDamageType from the engine - damage is now handled only
within the entity script (easier to mod/modify).

This was SVN commit r3325.
2006-01-02 03:07:29 +00:00
0b6b971ee8 Generic orders data commit (changes to the entity scripts and XML's).
This was SVN commit r3310.
2005-12-29 08:43:38 +00:00
8f5b5b7b73 Added time parameter on infidelity aura (currently sheep convert instantly but female citizens take 10 seconds).
This was SVN commit r3271.
2005-12-18 07:30:11 +00:00
1bedd9457a - Fixed the issue that was causing crashes when you tried to place one of them. They had 2 problems: first the template_structure_special whose parent was itself, as Phillip pointed out, but second also incorrect actor names. I also made the Carthaginian wall refer to the right parent template.
- Added a "dropsite" aura to mills, farmsteads and civil centers, and
modified the gathering code so you can only gather objects that have
this aura on them from one of these buildings. You can also add a
traits.supply.forageable tag to an entity to make it ignore the
requirement for dropsites and gather it wherever it is. I did this for
hunting, so you can hunt without being near a farmstead.

This was SVN commit r3265.
2005-12-17 09:28:26 +00:00
7af724889c Updated unit training to work with the new entities.
This was SVN commit r3261.
2005-12-16 22:52:10 +00:00
4de14f47f7 Sheep should no longer be overly fond of trees & rocks.
This was SVN commit r3258.
2005-12-16 07:22:40 +00:00
96df45e83d This was SVN commit r3252. 2005-12-15 23:20:53 +00:00
b14dc940ef New entities and associated changes to scripts.
This was SVN commit r3248.
2005-12-15 21:55:18 +00:00
15be1474bc Archers should now be able to fire, though I don't know what exactly the problem was (it seems that you need the "event" parameter to be 0.5 and the "load" parameter to be 0 in the animation for it to work, and the animation is not completely right; not sure if this is intended).
This was SVN commit r3243.
2005-12-14 04:53:53 +00:00
e4cf72e949 Rewrote InfidelityAura in a more correct way (if there are units from several players but none from your owner near you, you should switch to the player with the most units, not remain with your current owner; also, don't count other infidel things as units of your own player near you, so groups can be converted together).
This was SVN commit r3240.
2005-12-13 21:43:08 +00:00
0eb7108272 Added aura scripts and 3 auras: a Courage aura of 15 on Themistocles and 5 on Alexander, a Fear aura of 5 on Leonidas, and an Infidelity aura on female citizens.
This was SVN commit r3237.
2005-12-13 08:03:49 +00:00
a5f9789940 Fixes to entity death and event handling (buildings should no longer be able to move, all units should be able to die).
This was SVN commit r3225.
2005-12-11 02:08:24 +00:00
pyrolink
139698ec1d Entity heal update.
This was SVN commit r3129.
2005-11-13 06:43:04 +00:00
173b060668 Changed entity script to to allow Gaia units to be attacked (gather will still be higher priority though).
This was SVN commit r2753.
2005-09-19 01:20:23 +00:00
58fbafbbdd Command buttons can finally invoke the building painter or train units. Still plenty of glitches (particularly click-fest issues ... still an issue when updating the buttons directly rather than via hack, so it's probably due to constant onPress refresh). I've also had to disable the progress bar until I can make it work properly, but if you can get a unit in the queue it should eventually spawn. :)
This was SVN commit r2727.
2005-09-14 22:47:51 +00:00
4ab25c7274 * Fixed the "can't interact with the world" glitch. Turns out it was my fault. :)
* Restored the resource pool (and cleaned up the JS interface to it ...
array and counters are updated in one spot (wrapper functions to
add/deduct/define), without need for constant refresh).
* Added crude boxes in game setup to enter initial resource value.
* The command buttons still don't work when clicked (and clicking
continues to be erratic, only triggering if hammering the mouse button
... I think it's related to the return function() hack Philip set up),
but that's next on the list. :)
* Oh, and the command buttons don't currently realign to the different
corners with Alt+G, but all the rest should.

This was SVN commit r2715.
2005-09-14 00:50:25 +00:00
43d04d0f31 Some little scripting fixes Jason noticed.
This was SVN commit r2343.
2005-05-23 22:03:55 +00:00
c8b851eda9 - JS functions to make use of new ordering and interaction APIs
- selectLocation and selectEntity using the new interaction API
- Implemented attack and patrol buttons using select{Location,Entity}

This was SVN commit r2317.
2005-05-18 05:35:25 +00:00
MarkT
86dc351205 Projectile code and updates to some actors that can use it (celt_ijv and hele_iar)
This was SVN commit r2266.
2005-05-10 07:13:25 +00:00
53f9347029 Slight update to make the gather cursors work by subtype, and added a bunch of placeholder cursors shamelessly ripped from AoM. Any artist that feels like making non-copyrighted replacements would be most welcome. (Ironically, I could find few usable cursors for the different food types.)
This was SVN commit r2201.
2005-04-30 23:42:01 +00:00
6e97651c04 Unit training now costs ya (currently a consistent amount of Food/Wood/Stone for every entity, since I'm feeling lazy).
Also check out Mark's funky cursor support for gathering tasks (guess
we'll need cursors for the food gathering methods
(fruit/meat/milk/fish/grain), at some point, though).

This was SVN commit r2161.
2005-04-29 13:30:08 +00:00
MarkT
bcabe3aa53 Script integration work - valueOf() is no longer required most of the time; also property-change watches and enumeration over entities (but not yet other native objects), rudimentary beginnings of a global events system, and adjusted the status orb to update only on changes.
This was SVN commit r2157.
2005-04-22 07:12:55 +00:00
3d59ecab85 Train lists now support a basic progress bar and unit counters. Still to come ... Removing entries from the queue by right-clicking buttons, prerequisites and resource costs.
This was SVN commit r2147.
2005-04-19 02:06:18 +00:00
87e7f61fff Fix for subtype resources (food), so hopefully all resources should be gatherable now.
This was SVN commit r2144.
2005-04-17 06:00:00 +00:00
6ae111d0d7 Fix for NaN of resource types. Food resources still outstanding ... I think it's an issue where need to get the value of a supply object's subtype, but the evt .speed is only for the type. Will need to check with Mark.
This was SVN commit r2143.
2005-04-16 17:33:29 +00:00
MarkT
26d3f69ebf Fix to gathering script
This was SVN commit r2142.
2005-04-16 16:05:49 +00:00
MarkT
2120576bc7 Gathering and unit training (engine-side); also other minor improvements
This was SVN commit r2132.
2005-04-15 04:23:33 +00:00