lethosor
|
71b553b305
|
Add a few functions to retrieve unit social activities
|
2017-04-28 17:25:58 -04:00 |
lethosor
|
215afa34f3
|
Update for 64-bit unit changes
Includes xml, stonesense, scripts
Ref DFHack/df-structures@25cb373
|
2016-08-10 23:50:00 -04:00 |
lethosor
|
402a96b0e6
|
Expose new unit functions to lua and add some basic safety checks
|
2016-04-23 21:52:50 -04:00 |
lethosor
|
52728babd4
|
Merge branch 'develop' into zone-unassign
|
2016-04-22 18:41:15 -04:00 |
sv-esk
|
9da79544de
|
fix Units::isCitizen
fixes a lot of issues where plugins ignore non-dwarf citizens and work
with dwarf mercenaries and bards, where it shouldnot
|
2016-03-04 22:48:33 +02:00 |
lethosor
|
5bb19a230f
|
getKillCount: also search kills->events
|
2016-02-25 15:34:56 -05:00 |
lethosor
|
25507a10f9
|
Add Units::getKillCount() and expose it to Lua
|
2016-02-25 15:21:14 -05:00 |
lethosor
|
3e44aabf12
|
Expose Units::getSquadName to lua
|
2016-02-25 15:19:35 -05:00 |
sv-esk
|
83c70ccb0f
|
forbid manipulator editing non-citizens
|
2016-02-11 13:31:52 +02:00 |
James Gilles
|
0a670bb0db
|
Implement #804, move some functions to Units, colorize zone output, a
little cleanup
|
2016-02-01 11:12:06 -05:00 |
lethosor
|
5a1e5e1464
|
Expose Units::casteFlagSet()
|
2015-12-19 11:07:35 -05:00 |
lethosor
|
ac71fa8070
|
Add isValidLabor() to Units module
Closes #711 and could avoid potential issues when editing units from
other civs with manipulator.
|
2015-10-30 18:41:09 -04:00 |
lethosor
|
10cfef0553
|
Fix whitespace issues
|
2015-02-14 22:53:06 -05:00 |
Chris Dombroski
|
f608235b1e
|
Fix some Lua things
|
2015-01-29 19:56:50 -05:00 |
Chris Dombroski
|
1514233aaa
|
Add missing null checks to Units.cpp
|
2015-01-29 13:57:50 -05:00 |
Chris Dombroski
|
c179f5b913
|
Extract some stuff from zone.cpp to plugins/Units.{h,cpp}
|
2015-01-28 21:28:32 -05:00 |
Alexander Gavrilov
|
04ec2c9932
|
Update version to v0.40.14 and hack things so they compile.
Also make the find-offsets script less likely to crash if the
unit structure is misaligned and add more integrity checks.
|
2014-10-26 16:40:39 +03:00 |
Quietust
|
1450298484
|
assumed_identity -> identity
|
2014-07-29 16:30:22 -05:00 |
JapaMala
|
516121d4f8
|
Fixed the getprofession behavior in adventure mode. Now it checks for the current adventurer's race instead of the fortress race.
|
2014-07-02 23:07:24 +05:30 |
Pierre-David Bélanger
|
e0808c8c96
|
Use squad::find instead of indexing the vector
|
2014-06-10 22:38:32 -04:00 |
Pierre-David Bélanger
|
bdcc00f6f7
|
Util method (in the Units class) to get a unit squad name (the translated name, or alias if set)
|
2014-06-09 21:51:52 -04:00 |
Alexander Gavrilov
|
6bef167f83
|
Add a couple of useful scripts and fix two missing NULL checks.
- A script to unstick jobs trying to build walls from the same tile.
- A devel script for viewing the path a unit is currently following.
|
2014-04-21 09:24:05 +04:00 |
Alexander Gavrilov
|
fc9826389b
|
Account for meandering movement when predicting unit path in siege engine.
The movement is random, but there is an average slowdown coefficient.
|
2014-04-15 19:50:23 +04:00 |
Alexander Gavrilov
|
df2e04db26
|
Update xml definitions.
|
2013-08-16 18:25:16 +04:00 |
Alexander Gavrilov
|
49409d4630
|
Follow xml changes.
|
2013-06-11 16:10:42 +04:00 |
jj
|
6bc791d985
|
follow df-structure rename unit.unknown8 + able_stand_*
|
2012-12-10 22:50:33 +01:00 |
Quietust
|
3f2e583746
|
Naming consistency
|
2012-11-16 15:35:34 -06:00 |
Alexander Gavrilov
|
2401be1b3b
|
Add an api function to retrieve unit skill experience.
|
2012-11-16 22:48:49 +04:00 |
Alexander Gavrilov
|
b4dcc7e7ad
|
Add more native api functions for finding general and specific refs.
|
2012-11-12 19:17:32 +04:00 |
Quietust
|
a99d47ee7a
|
Remove UTF-8 BOMs added by notepad
|
2012-11-12 08:38:29 -06:00 |
Quietust
|
766aca4911
|
Rename general_ref vectors for consistency
|
2012-11-12 08:27:58 -06:00 |
Alexander Gavrilov
|
b976e01b8c
|
Follow the change in the base-type of job_skill.
|
2012-10-26 20:29:21 +04:00 |
Petr Mrázek
|
8812238bf6
|
Update license, add contributors file, bump release number
|
2012-09-30 04:03:37 +02:00 |
Alexander Gavrilov
|
48da06ec37
|
Add an API function for reading the nominal skill level.
|
2012-09-29 15:18:04 +04:00 |
Timothy Collett
|
ccefd02ee3
|
Merge branch 'master' of git://github.com/angavrilov/dfhack
|
2012-09-10 11:56:23 -04:00 |
Timothy Collett
|
96abc903ab
|
Merge branch 'master' of http://github.com/peterix/dfhack
|
2012-09-10 11:54:56 -04:00 |
Timothy Collett
|
274d6038ad
|
Merge further changes (???)
|
2012-09-10 09:19:21 -04:00 |
Alexander Gavrilov
|
9679b7729c
|
Clean up the movement speed calculation function and move into the core.
|
2012-09-09 17:04:58 +04:00 |
Alexander Gavrilov
|
ec3d489bda
|
Move curse-affected attribute value getters to the core.
|
2012-09-09 12:51:08 +04:00 |
Alexander Gavrilov
|
a36fe25e72
|
Finish the effective skill computation function, and move to core.
|
2012-09-09 12:27:40 +04:00 |
Quietust
|
1e28ceff6d
|
Add getProfessionColor and getCasteProfessionColor to Units module
|
2012-08-22 16:54:00 -05:00 |
Alexander Gavrilov
|
9adf310d7f
|
Update Units::isCitizen after looking at game-over detection code.
|
2012-05-22 12:31:37 +04:00 |
Petr Mrázek
|
1333dc569f
|
Merge https://github.com/Caldfir/dfhack
|
2012-05-18 17:42:34 +02:00 |
Alexander Gavrilov
|
4cffb6428d
|
Update building creation code with new knowledge, and fix zone.
Also, document new lua api, and add a more convenient wrapper.
|
2012-05-01 18:55:30 +04:00 |
Alexander Gavrilov
|
16ee049664
|
Split off the burrows api from Maps and Units.
|
2012-04-26 12:56:28 +04:00 |
Alexander Gavrilov
|
6ab270d129
|
Retrieve unit noble position info, and use it in getProfessionName.
|
2012-04-26 12:03:56 +04:00 |
Alexander Gavrilov
|
763a301b4f
|
Add a few more lua api functions, documentation, and unit sort orders.
Units::getProfessionName appears to work correctly for
everything except nobles.
|
2012-04-23 21:30:53 +04:00 |
Caldfir
|
035d65536b
|
Added in job loading to t_unit for stonesense.
|
2012-04-22 18:51:27 -07:00 |
Alexander Gavrilov
|
3282ac3db2
|
Add a hotkey command that sorts units in lists using lua comparators.
|
2012-04-21 15:43:52 +04:00 |
Alexander Gavrilov
|
0a6982f404
|
Enable warnings correctly on linux and fix a lot of them.
|
2012-04-20 13:30:37 +04:00 |