1ba5477b63 
								
							
								 
							
						 
						
							
							
								
								Add designation priority support to MapCache and dig plugin  
							
							... 
							
							
							
							Fixes  #481  
						
							2018-01-21 19:27:16 -05:00  
				
					
						
							
							
								 
						
							
							
								10e13c532a 
								
							
								 
							
						 
						
							
							
								
								Add "tweak cage-butcher" and some extra Building module functions  
							
							... 
							
							
							
							* Buildings::markedForRemoval()
* Buildings::getCageOccupants()
Closes  #906  
							
						 
						
							2017-06-25 15:27:21 -04:00  
				
					
						
							
							
								 
						
							
							
								ae809afde7 
								
							
								 
							
						 
						
							
							
								
								Add Gui::refreshSidebar()  
							
							... 
							
							
							
							This handles feeding CURSOR_DOWN_Z and CURSOR_UP_Z properly, avoiding issues
when on the lowest z-level. 
							
						 
						
							2017-06-23 00:02:21 -04:00  
				
					
						
							
							
								 
						
							
							
								27343e3253 
								
							
								 
							
						 
						
							
							
								
								Add unit and tile visibility functions  
							
							
							
						 
						
							2017-06-10 21:54:08 -04:00  
				
					
						
							
							
								 
						
							
							
								778ffb0971 
								
							
								 
							
						 
						
							
							
								
								More Units module cleanup, modernize getUnitsInBox  
							
							
							
						 
						
							2017-06-10 21:02:30 -04:00  
				
					
						
							
							
								 
						
							
							
								1321a64613 
								
							
								 
							
						 
						
							
							
								
								Remove lots of old/unused functions from the Units module  
							
							
							
						 
						
							2017-06-10 17:21:34 -04:00  
				
					
						
							
							
								 
						
							
							
								43c4a88068 
								
							
								 
							
						 
						
							
							
								
								Move some checks in paintTile/readTile after hooks are called  
							
							
							
						 
						
							2017-06-02 00:40:14 -04:00  
				
					
						
							
							
								 
						
							
							
								05f322ca30 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'lethosor/lua-dmdims' into develop  
							
							
							
						 
						
							2017-06-01 23:34:35 -04:00  
				
					
						
							
							
								 
						
							
							
								939aff3231 
								
							
								 
							
						 
						
							
							
								
								readTile(): add hook support and map parameter  
							
							
							
						 
						
							2017-05-31 12:12:15 -04:00  
				
					
						
							
							
								 
						
							
							
								55931703ac 
								
							
								 
							
						 
						
							
							
								
								Designate the correct tile for trees with multi-tile trunks  
							
							... 
							
							
							
							DF always designates the southeast trunk tile, while plant.pos is the center,
which is sometimes inaccessible (see #1014 ) 
							
						 
						
							2017-05-05 21:25:25 -04:00  
				
					
						
							
							
								 
						
							
							
								d3c496cc2b 
								
							
								 
							
						 
						
							
							
								
								Add getSelectedPlant() and related functions  
							
							... 
							
							
							
							Currently only works with the center tile of multi-tile trees 
							
						 
						
							2017-05-05 14:45:46 -04:00  
				
					
						
							
							
								 
						
							
							
								1e469453fc 
								
							
								 
							
						 
						
							
							
								
								Add Designations module, currently supporting plant/tree designations  
							
							... 
							
							
							
							This makes it easier for tools to properly handle designating and undesignating
trees for chopping and plants for gathering, which changed significantly in
0.40.20.
Ref #531  (?), #656 , #1014 , #1018 , #1030 , #1076  
							
						 
						
							2017-05-04 21:47:12 -04:00  
				
					
						
							
							
								 
						
							
							
								71b553b305 
								
							
								 
							
						 
						
							
							
								
								Add a few functions to retrieve unit social activities  
							
							
							
						 
						
							2017-04-28 17:25:58 -04:00  
				
					
						
							
							
								 
						
							
							
								acdb369aa8 
								
							
								 
							
						 
						
							
							
								
								Avoid non-trivial bitfield constructors  
							
							
							
						 
						
							2016-12-09 13:41:14 -05:00  
				
					
						
							
							
								 
						
							
							
								8521b830b2 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'CannibalVox/job_remove' into develop  
							
							
							
						 
						
							2016-12-05 15:24:37 -05:00  
				
					
						
							
							
								 
						
							
							
								595f3857b6 
								
							
								 
							
						 
						
							
							
								
								Reverse the param order of these two methods  
							
							... 
							
							
							
							The current way doesn't match other Job module methods 
							
						 
						
							2016-12-01 20:13:49 -08:00  
				
					
						
							
							
								 
						
							
							
								7920f71517 
								
							
								 
							
						 
						
							
							
								
								Bad formatting  
							
							
							
						 
						
							2016-11-25 00:25:18 -08:00  
				
					
						
							
							
								 
						
							
							
								e490afdf00 
								
							
								 
							
						 
						
							
							
								
								Rebuilt slightly to offer bool return val  
							
							... 
							
							
							
							We fail on unknown general ref types now, without modifying the job at
all yet 
							
						 
						
							2016-11-24 22:36:11 -08:00  
				
					
						
							
							
								 
						
							
							
								74f5df99db 
								
							
								 
							
						 
						
							
							
								
								Add job remove method  
							
							... 
							
							
							
							Job remove eliminates a job's worker & holder references, if any, puts
the worker on cd, if appropriate, removes the job's postings, eliminates
the job from the global linked list, and then finally deletes it.  This
code was tested by incorporating it into autochop and it does make the
plugin work.  However, chop jobs don't have holder building references,
and anyway, with DF being 90% edge case by volume, this could use a heck
of a lot more testing.
I saw elsewhere code that prevented worker removal if the job was a
special job, and that made me feel funny so I made the job remove method
not work if the job is a special job. 
							
						 
						
							2016-11-17 19:54:41 -08:00  
				
					
						
							
							
								 
						
							
							
								8a138fcc4c 
								
							
								 
							
						 
						
							
							
								
								Avoid polluting global namespace in MapCache.h  
							
							
							
						 
						
							2016-10-15 14:53:10 -04:00  
				
					
						
							
							
								 
						
							
							
								70d3c07cdb 
								
							
								 
							
						 
						
							
							
								
								Initial lua getDwarfmodeViewDims rewrite  
							
							
							
						 
						
							2016-10-07 23:51:58 -04:00  
				
					
						
							
							
								 
						
							
							
								e965f5318f 
								
							
								 
							
						 
						
							
							
								
								Replace many includes with forward declarations in modules/Maps.h  
							
							
							
						 
						
							2016-08-13 21:44:01 -04:00  
				
					
						
							
							
								 
						
							
							
								79377669a1 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'NCommander/dwarfvet' into develop  
							
							
							
						 
						
							2016-07-29 16:25:53 -04:00  
				
					
						
							
							
								 
						
							
							
								2455e36510 
								
							
								 
							
						 
						
							
							
								
								Initial 64-bit support  
							
							
							
						 
						
							2016-07-03 23:32:43 -04:00  
				
					
						
							
							
								 
						
							
							
								e45fbfc61d 
								
							
								 
							
						 
						
							
							
								
								Modified dwaftvet plugin to work with latest DFHack  
							
							... 
							
							
							
							Initial commit of the dwarfvet plugin
Signed-off-by: Michael Casadevall <mcasadevall@ubuntu.com> 
							
						 
						
							2016-06-08 04:14:59 -04:00  
				
					
						
							
							
								 
						
							
							
								52728babd4 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into zone-unassign  
							
							
							
						 
						
							2016-04-22 18:41:15 -04:00  
				
					
						
							
							
								 
						
							
							
								b97d33ca28 
								
							
								 
							
						 
						
							
							
								
								moveToBuilding improvements  
							
							... 
							
							
							
							- Don't set in_building by default when use_mode is 0 (consistent with most vanilla DF items)
- make use_mode optional and default to 0 (including in Lua API)
Resolves  #885  
							
						 
						
							2016-04-05 11:43:02 -04:00  
				
					
						
							
							
								 
						
							
							
								25507a10f9 
								
							
								 
							
						 
						
							
							
								
								Add Units::getKillCount() and expose it to Lua  
							
							
							
						 
						
							2016-02-25 15:21:14 -05:00  
				
					
						
							
							
								 
						
							
							
								83c70ccb0f 
								
							
								 
							
						 
						
							
							
								
								forbid manipulator editing non-citizens  
							
							
							
						 
						
							2016-02-11 13:31:52 +02:00  
				
					
						
							
							
								 
						
							
							
								0a670bb0db 
								
							
								 
							
						 
						
							
							
								
								Implement  #804 , move some functions to Units, colorize zone output, a  
							
							... 
							
							
							
							little cleanup 
							
						 
						
							2016-02-01 11:12:06 -05:00  
				
					
						
							
							
								 
						
							
							
								d0c28d3f50 
								
							
								 
							
						 
						
							
							
								
								Prevent plugins with active viewscreens from being unloaded  
							
							... 
							
							
							
							This requires plugins to pass plugin_self to Screen::show(), but
avoids the need to implement special checks in plugin_onstatechange
for the SC_BEGIN_UNLOAD event. 
							
						 
						
							2016-01-01 11:15:29 -05:00  
				
					
						
							
							
								 
						
							
							
								2a2ab00ca9 
								
							
								 
							
						 
						
							
							
								
								Add "map" parameter to a lot of drawing functions  
							
							... 
							
							
							
							Ref #746  
							
						 
						
							2015-12-22 11:42:51 -05:00  
				
					
						
							
							
								 
						
							
							
								5a1e5e1464 
								
							
								 
							
						 
						
							
							
								
								Expose Units::casteFlagSet()  
							
							
							
						 
						
							2015-12-19 11:07:35 -05:00  
				
					
						
							
							
								 
						
							
							
								2aeac718cc 
								
							
								 
							
						 
						
							
							
								
								workflow: Account for job postings correctly and fix existing issues  
							
							... 
							
							
							
							Without removing postings correctly, it was possible to end up with
multiple workers assigned to a job that workflow had suspended
multiple times, which caused crashes if more than one worker was
assigned to the same job by DF.
This adds an additional command, fix-job-postings, that runs
automatically when loading a world and fixes:
- Multiple job postings that point to the same job
- Job postings that point to a job where posting_index == -1
  (i.e. jobs that should have no posting assigned)
Fixes  #741  
							
						 
						
							2015-11-25 20:33:13 -05:00  
				
					
						
							
							
								 
						
							
							
								610170b0b0 
								
							
								 
							
						 
						
							
							
								
								Add hooks for getDwarfmodeViewDims and getDepthAt (new)  
							
							
							
						 
						
							2015-11-15 11:54:34 -05:00  
				
					
						
							
							
								 
						
							
							
								fcfffd1cb6 
								
							
								 
							
						 
						
							
							
								
								Track state of gui hooks  
							
							... 
							
							
							
							Also fix a bug in drawborder() and expand color-dfhack-text to test
multiple hooks 
							
						 
						
							2015-11-15 11:54:34 -05:00  
				
					
						
							
							
								 
						
							
							
								fff9072b07 
								
							
								 
							
						 
						
							
							
								
								Add initial support for hooking into Gui-related functions  
							
							
							
						 
						
							2015-11-15 11:54:34 -05:00  
				
					
						
							
							
								 
						
							
							
								e9be1aa657 
								
							
								 
							
						 
						
							
							
								
								Fix for construction over existing construction & on top of walls  
							
							... 
							
							
							
							Fix to allow constructions on top of (natural) down stairs 
							
						 
						
							2015-11-06 19:00:43 +01:00  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								8de710f1c1 
								
							
								 
							
						 
						
							
							
								
								Add Renderer module - safer way to install custom renderers  
							
							
							
						 
						
							2015-10-21 17:18:39 -04:00  
				
					
						
							
							
								 
						
							
							
								3f5c002634 
								
							
								 
							
						 
						
							
							
								
								Pass virtual_identity by reference  
							
							
							
						 
						
							2015-10-03 09:27:24 -04:00  
				
					
						
							
							
								 
						
							
							
								d343dfd8a0 
								
							
								 
							
						 
						
							
							
								
								Add a function to find viewscreens (or parents) of a given type  
							
							... 
							
							
							
							This makes it possible for some plugins to detect the game state more
reliably - for example, prospector would previously fail when
embarking if the viewscreen_choose_start_sitest instance had any
children. 
							
						 
						
							2015-10-02 21:50:55 -04:00  
				
					
						
							
							
								 
						
							
							
								36fde3d7e3 
								
							
								 
							
						 
						
							
							
								
								Allow Lua screens to allow OPTIONS to work  
							
							
							
						 
						
							2015-06-05 18:45:52 -04:00  
				
					
						
							
							
								 
						
							
							
								bbb41078e7 
								
							
								 
							
						 
						
							
							
								
								Expose PenArray dimensions and tiles to Lua  
							
							
							
						 
						
							2015-03-28 18:35:07 -04:00  
				
					
						
							
							
								 
						
							
							
								e2b6ae9beb 
								
							
								 
							
						 
						
							
							
								
								Allocate Lua PenArray objects using an existing buffer  
							
							
							
						 
						
							2015-03-28 11:27:47 -04:00  
				
					
						
							
							
								 
						
							
							
								99f4ea4d2b 
								
							
								 
							
						 
						
							
							
								
								Implement a PenArray class for caching parts of rendered screens  
							
							
							
						 
						
							2015-03-27 22:56:30 -04:00  
				
					
						
							
							
								 
						
							
							
								afca7419dc 
								
							
								 
							
						 
						
							
							
								
								Add gametype checks to World.cpp  
							
							
							
						 
						
							2015-03-09 20:08:21 -04:00  
				
					
						
							
							
								 
						
							
							
								10cfef0553 
								
							
								 
							
						 
						
							
							
								
								Fix whitespace issues  
							
							
							
						 
						
							2015-02-14 22:53:06 -05:00  
				
					
						
							
							
								 
						
							
							
								e9b4fc513a 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'cdombroski/zone-plugin-cleanup' into temp  
							
							... 
							
							
							
							Conflicts:
	NEWS
	plugins/zone.cpp 
							
						 
						
							2015-01-31 21:01:41 -05:00  
				
					
						
							
							
								 
						
							
							
								066adfdf95 
								
							
								 
							
						 
						
							
							
								
								Implement a function to list directories recursively  
							
							
							
						 
						
							2015-01-30 17:29:17 -05:00