Skip to content

Commit

Permalink
AI: FIX: undo the change again since even more AI got stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcurus committed Jan 15, 2024
1 parent d078a19 commit 466e6be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions openlife/auto/AiBase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -8546,7 +8546,8 @@ abstract class AiBase {
var stored = useTarget.containedObjects[0];
var storedName = stored == null ? 'null' : stored.name;

if (dropHeldObject(10)) {
// if (dropHeldObject(10)) {
if (dropHeldObject(0)) {
if (shouldDebugSay()) myPlayer.say('drop for remove from container');
// if (ServerSettings.DebugAi)
trace('AAI: ${myPlayer.name + myPlayer.id} drop ${myPlayer.heldObject.name} for remove from container ${useTarget.name} --> ${storedName}');
Expand All @@ -8566,10 +8567,10 @@ abstract class AiBase {
var heldObject = myPlayer.heldObject;
var isHoldingObject = myPlayer.isHoldingObject();

if (emptyContainer()) {
// CancleUse();
/*if (emptyContainer()) {
CancleUse();
return true;
}
}*/

// check if target changed meanwhile like Fire --> Hot Coals
if (expectedUseTarget != null && useTarget.parentId != expectedUseTarget.parentId) {
Expand Down
Binary file modified server.hl
Binary file not shown.

0 comments on commit 466e6be

Please sign in to comment.