Merge pull request #6733 from VOREStation/pol-aitweaks

Readd some AI features and improve AI buildmode
This commit is contained in:
Atermonera
2020-02-26 17:14:50 -08:00
committed by GitHub
19 changed files with 358 additions and 185 deletions
+8
View File
@@ -320,6 +320,14 @@
if(inactivity > duration) return inactivity
return 0
//Called when the client performs a drag-and-drop operation.
/client/MouseDrop(start_object,end_object,start_location,end_location,start_control,end_control,params)
if(buildmode && start_control == "mapwindow.map" && start_control == end_control)
build_drag(src,buildmode,start_object,end_object,start_location,end_location,start_control,end_control,params)
else
. = ..()
// Byond seemingly calls stat, each tick.
// Calling things each tick can get expensive real quick.
// So we slow this down a little.