add log for build
This commit is contained in:
@@ -811,14 +811,14 @@ namespace BrewMonster.Network
|
||||
|
||||
#if UNITY_EDITOR
|
||||
// Debug: Press D to disconnect from server (Editor only)
|
||||
if (Input.GetKeyDown(KeyCode.D))
|
||||
/* if (Input.GetKeyDown(KeyCode.D))
|
||||
{
|
||||
if (_gameSession != null && _gameSession.IsConnected)
|
||||
{
|
||||
Debug.Log("[DEBUG] D key pressed - Force disconnecting from server...");
|
||||
_gameSession.Disconnect();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -891,4 +891,4 @@ namespace BrewMonster.Network
|
||||
return v;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,8 +70,9 @@ namespace BrewMonster
|
||||
|
||||
private void OnCloseClicked()
|
||||
{
|
||||
Show(false);
|
||||
// treat the close button as OK button
|
||||
OnYesClicked();
|
||||
//OnYesClicked();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -228,7 +228,8 @@ namespace BrewMonster
|
||||
enumSkillLearnedState learnedState = model.GetSkillLearnedState(m_skillID);
|
||||
|
||||
int requiredItem = model.GetRequiredBook(m_skillID, m_curLevel + 1);
|
||||
//BMLogger.LogError($"UpdateUpgradeBtn learnedState:{learnedState}, fitLevel={fitLevel}, requiredItem:{requiredItem}, model.CheckPreItem(requiredItem):{model.CheckPreItem(requiredItem)}");
|
||||
if(m_skillID == 234)
|
||||
BMLogger.LogError($"UpdateUpgradeBtn learnedState:{learnedState}, fitLevel={fitLevel}, requiredItem:{requiredItem}, model.CheckPreItem(requiredItem):{model.CheckPreItem(requiredItem)}");
|
||||
if (enumSkillLearnedState.SKILL_FULL != learnedState &&
|
||||
enumSkillFitLevelState.SKILL_FIT_LEVEL == fitLevel &&
|
||||
(requiredItem == 0 || model.CheckPreItem(requiredItem)))
|
||||
@@ -243,6 +244,8 @@ namespace BrewMonster
|
||||
int curSp = GetHostPlayer().GetBasicProps().iSP;
|
||||
uint curMoney = GetHostPlayer().GetMoneyAmount();
|
||||
|
||||
if (m_skillID == 234)
|
||||
BMLogger.LogError($"HoangDev: UpdateUpgradeBtn curSp:{curSp}, needSp:{needSp}, curMoney:{curMoney}, needMoney:{needMoney}");
|
||||
bool spOK = curSp >= needSp;
|
||||
bool moneyOK = curMoney >= needMoney;
|
||||
bool preSkillOK = true;
|
||||
@@ -259,7 +262,8 @@ namespace BrewMonster
|
||||
}
|
||||
}
|
||||
}
|
||||
//BMLogger.LogError($"HoangDev: UpdateUpgradeBtn m_skillID:{m_skillID} spOK=" + spOK + ", moneyOK=" + moneyOK + ", preSkillOK=" + preSkillOK);
|
||||
if (m_skillID == 234)
|
||||
BMLogger.LogError($"HoangDev: UpdateUpgradeBtn m_skillID:{m_skillID} spOK=" + spOK + ", moneyOK=" + moneyOK + ", preSkillOK=" + preSkillOK);
|
||||
if (spOK && moneyOK && preSkillOK)
|
||||
{
|
||||
m_upgradeBtn.interactable = true;
|
||||
|
||||
@@ -453,6 +453,8 @@ namespace BrewMonster
|
||||
public bool ApplySkillShortcut(int idSkill, bool bCombo = false /* false */,
|
||||
int idSelTarget = 0 /* 0 */, int iForceAtk = -1 /* -1 */)
|
||||
{
|
||||
Debug.LogError($"ApplySkillShortcut: Skill 167 detected, calling idSkill :"+ idSkill);
|
||||
|
||||
//StackChecker::ACTrace(4);
|
||||
// Debug.Log($"[SKILL_CAST_DEBUG] ApplySkillShortcut: Entry, skillID={idSkill}, bCombo={bCombo}, idSelTarget={idSelTarget}, iForceAtk={iForceAtk}, " +
|
||||
// $"IsSpellingMagic={IsSpellingMagic()}, m_pPrepSkill={(m_pPrepSkill != null ? m_pPrepSkill.GetSkillID().ToString() : "null")}, " +
|
||||
|
||||
+807
-256
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user