1
0
forked from 0ad/0ad
Commit Graph

24 Commits

Author SHA1 Message Date
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