Removed option AI_DECISION_INFO.

Added quest debug logging to Logs\QuestInfo.txt

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9177 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-10-14 08:35:32 +00:00
parent 9f787dd73d
commit 0a717c2697
13 changed files with 107 additions and 12 deletions
+12 -1
View File
@@ -3584,8 +3584,11 @@ static int l_gubBoxerID(lua_State *L)
UINT8 val = lua_tointeger( L, 1 );
UINT8 val2 = lua_tointeger( L, 2 );
if ( val <= 2 )
if (val <= 2)
{
gubBoxerID[val] = val2;
DebugQuestInfo(String("Lua: set gubBoxerID[%d] %d", val, gubBoxerID[val]));
}
}
return 0;
@@ -8195,6 +8198,7 @@ static int l_SetgfBoxerFought (lua_State *L)
BOOLEAN Bool = lua_toboolean( L, 2 );
gfBoxerFought[id] = Bool;
DebugQuestInfo(String("lua: set gfBoxerFought[%d] %d ", id, Bool));
}
return 0;
@@ -8203,7 +8207,10 @@ static int l_SetgfBoxerFought (lua_State *L)
static int l_SetgfBoxersResting(lua_State *L)
{
if (lua_gettop(L))
{
gfBoxersResting = lua_toboolean(L, 1);
DebugQuestInfo(String("lua: set gfBoxersResting %d", gfBoxersResting));
}
return 0;
}
@@ -8211,7 +8218,10 @@ static int l_SetgfBoxersResting(lua_State *L)
static int l_SetgubBoxersRests(lua_State *L)
{
if (lua_gettop(L))
{
gubBoxersRests = lua_tointeger(L, 1);
DebugQuestInfo(String("lua: set gubBoxersRests %d ", gubBoxersRests));
}
return 0;
}
@@ -10605,6 +10615,7 @@ static int l_ResetBoxers( lua_State *L )
gubBoxerID[i] = NOBODY;
// sevenfm: keep gfBoxerFought[] unchanged as it will be reset every day at 16:00 by HourlyQuestUpdate(), HourlyUpdate.lua
//gfBoxerFought[i] = FALSE;
DebugQuestInfo(String("Lua: reset boxer gubBoxerID[%d] %d", i, gubBoxerID[i]));
}
return 0;