Merge branch 'develop' of https://git.pthub.vn/Unity/perfect-world-unity into fix-ui
This commit is contained in:
@@ -11,7 +11,11 @@ Material:
|
||||
m_Shader: {fileID: 4800000, guid: 0a016a83287664641b867743f19faf14, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_ValidKeywords:
|
||||
- _DISSOLVETEXUVS_NORMAL
|
||||
- _DISTORTTEXUVS_NORMAL
|
||||
- _MAINTEXUVS_NORMAL
|
||||
- _MASKTEXUVS_NORMAL
|
||||
m_InvalidKeywords:
|
||||
- _DISSOLVETEXAR_ON
|
||||
- _DISTORTTEXAR_ON
|
||||
@@ -118,7 +122,11 @@ Material:
|
||||
- _DissolveFactor: 0
|
||||
- _DissolveSoft: 0.1
|
||||
- _DissolveTexAR: 1
|
||||
- _DissolveTexClampU: 0
|
||||
- _DissolveTexClampV: 0
|
||||
- _DissolveTexRotate: 0
|
||||
- _DissolveTexUSpeed: 0
|
||||
- _DissolveTexUVS: 0
|
||||
- _DissolveTexVSpeed: 0
|
||||
- _DissolveWide: 0.05
|
||||
- _DistortDissolveTex: 0
|
||||
@@ -126,7 +134,11 @@ Material:
|
||||
- _DistortMainTex: 0
|
||||
- _DistortMaskTex: 0
|
||||
- _DistortTexAR: 1
|
||||
- _DistortTexClampU: 0
|
||||
- _DistortTexClampV: 0
|
||||
- _DistortTexRotate: 0
|
||||
- _DistortTexUSpeed: 0
|
||||
- _DistortTexUVS: 0
|
||||
- _DistortTexVSpeed: 0
|
||||
- _Dst: 1
|
||||
- _DstBlend: 0
|
||||
@@ -144,10 +156,18 @@ Material:
|
||||
- _GlossyReflections: 0
|
||||
- _MainAlpha: 1
|
||||
- _MainTexAR: 0
|
||||
- _MainTexClampU: 0
|
||||
- _MainTexClampV: 0
|
||||
- _MainTexRotate: 0
|
||||
- _MainTexUSpeed: 0
|
||||
- _MainTexUVS: 0
|
||||
- _MainTexVSpeed: 0
|
||||
- _MaskTexAR: 1
|
||||
- _MaskTexClampU: 0
|
||||
- _MaskTexClampV: 0
|
||||
- _MaskTexRotate: 0
|
||||
- _MaskTexUSpeed: 0
|
||||
- _MaskTexUVS: 0
|
||||
- _MaskTexVSpeed: 0
|
||||
- _Metallic: 0
|
||||
- _OcclusionStrength: 1
|
||||
|
||||
@@ -288,7 +288,6 @@ namespace BrewMonster.Scripts
|
||||
/// </summary>
|
||||
public async Task<AudioClip> LoadAudioClipAsync(string assetPath)
|
||||
{
|
||||
// BMLogger.LogError($"HoangDEv : AddressableManager: LoadAudioClipAsync called with assetPath: {assetPath}");
|
||||
RemoveFromReleaseAssetDictionary(assetPath);
|
||||
|
||||
if (_loadedAudioAssets.TryGetValue(assetPath, out _loadedAudioClipHandle))
|
||||
|
||||
@@ -235,7 +235,6 @@ namespace BrewMonster
|
||||
while (node != null)
|
||||
{
|
||||
var next = node.Next;
|
||||
//BMLogger.LogError("HoangDev: Update CECAttackEvent node.Value.m_bFinished: " + node.Value.m_bFinished);
|
||||
if (node.Value.m_bFinished)
|
||||
m_targets.Remove(node);
|
||||
else
|
||||
@@ -305,7 +304,6 @@ namespace BrewMonster
|
||||
public CECAttackerEvents FindAttackByAttacker(int idHost)
|
||||
{
|
||||
CECAttackerEvents result = new CECAttackerEvents();
|
||||
//BMLogger.LogError("HoangDev: FindAttackByAttacker idHost: " + m_AttackLinkedList.Count);
|
||||
foreach (var attack in m_targets)
|
||||
{
|
||||
if (attack.m_idHost == idHost)
|
||||
@@ -672,7 +670,6 @@ namespace BrewMonster
|
||||
? null
|
||||
: await AddressableManager.Instance.LoadPrefabAsync("gfx/" + hitGrdGfxName);
|
||||
|
||||
// BMLogger.LogError("HoangDev: Load A3DSkillGfxComposer GFX name: " + hitGfxName);
|
||||
if (m_szFlyGfx == null && !string.IsNullOrEmpty(flyGfxName))
|
||||
{
|
||||
m_szFlyGfx = Resources.Load<GameObject>("GFX/" + "PlaceHolder");
|
||||
@@ -1432,7 +1429,6 @@ public class CECAttackEvent
|
||||
else if (GPDataTypeHelper.ISPLAYERID(idTarget))
|
||||
{
|
||||
CECPlayer pPlayer = EC_ManMessageMono.Instance.GetECManPlayer.GetPlayer(idTarget);
|
||||
//BMLogger.LogError("HoangDev: CECPlayer pPlayer = " + pPlayer );
|
||||
|
||||
if (!pPlayer)
|
||||
return true;
|
||||
|
||||
@@ -352,7 +352,6 @@ namespace BrewMonster
|
||||
Quaternion rot = dir.sqrMagnitude > 1e-4f ? Quaternion.LookRotation(dir) : Quaternion.identity;*/
|
||||
|
||||
m_flyGfxInstance = GameObject.Instantiate(prefab, pos, prefab.transform.rotation);
|
||||
// BMLogger.LogError("HoangDev: m_pComposer fly "+m_pComposer.flyGfxName);
|
||||
SFXManager.Instance?.PlaySkillSfxAtPointAsync(m_pComposer.GetFlySfxPath(), pos).Forget();
|
||||
|
||||
// If m_bTraceTarget is true, add to tracking list when spawned
|
||||
|
||||
@@ -123,7 +123,6 @@ namespace BrewMonster
|
||||
|
||||
public void SendStopMoveCmd(in Vector3 vPos, float fSpeed, int iMoveMode)
|
||||
{
|
||||
// UnityEngine.Debug.LogWarning("HoangDev : SendStopMoveCmd");
|
||||
iMoveMode |= (int)GPMoveMode.GP_MOVE_DEAD;
|
||||
|
||||
if (cmdstopdelayCounter >= 500)
|
||||
@@ -389,7 +388,6 @@ namespace BrewMonster
|
||||
cdr.fGravityAccel = 9.8f; // EC_GRAVITY
|
||||
|
||||
EC_CDR.OnGroundMove(ref cdr);
|
||||
//BMLogger.LogError($"HoangDev: FlashMove seg={i} stepTime={cdr.t} center=({cdr.vCenter})");
|
||||
|
||||
var world = CECGameRun.Instance?.GetWorld();
|
||||
if (world?.GetAssureMove() != null)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using BrewMonster.Managers;
|
||||
using BrewMonster.Managers;
|
||||
using BrewMonster.Network;
|
||||
using BrewMonster.PerfectWorld.Scripts.Vfx;
|
||||
using BrewMonster.Scripts;
|
||||
@@ -1089,7 +1089,6 @@ namespace BrewMonster
|
||||
protected void RemoveGfx(string szPath, string szHook, uint iShapeTypeMask)
|
||||
{
|
||||
string key = szPath + szHook;
|
||||
// BMLogger.LogError("HoangDev: RemoveGfx " +szPath );
|
||||
if (_stateGfxObjects.TryGetValue(key, out GameObject vfx) && vfx != null)
|
||||
{
|
||||
Destroy(vfx.gameObject);
|
||||
@@ -2062,7 +2061,6 @@ namespace BrewMonster
|
||||
{
|
||||
pFashionConfig =
|
||||
(FASHION_WEAPON_CONFIG)pDataMan.get_data_ptr(tid, ID_SPACE.ID_SPACE_CONFIG, ref DataType);
|
||||
BMLogger.LogError($"HoangDev : get_data_ptr {pFashionConfig.GetType()}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2142,7 +2140,6 @@ namespace BrewMonster
|
||||
var target = EC_ManMessageMono.Instance?.GetObject(idTarget, 0)?.gameObject.transform;
|
||||
if (target == null)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: ko có transform ");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2266,7 +2263,6 @@ namespace BrewMonster
|
||||
// Just play a wounded action
|
||||
if (!OnDamaged(skill))
|
||||
{
|
||||
BMLogger.LogError(("HoangDev PlayAction((int)PLAYER_ACTION_TYPE.ACT_WOUNDED);"));
|
||||
PlayAction((int)PLAYER_ACTION_TYPE.ACT_WOUNDED);
|
||||
}
|
||||
if ((dwModifier & (uint)MOD.MOD_IMMUNE) != 0)
|
||||
@@ -2676,17 +2672,14 @@ namespace BrewMonster
|
||||
|
||||
string name1, name2;
|
||||
|
||||
BMLogger.LogError("HoangDev: OnDamaged skill:"+skill + ", m_sciStateIDForStateAction.Length:"+m_sciStateIDForStateAction.Length);
|
||||
for (int i = 0; i < m_sciStateIDForStateAction.Length; i++)
|
||||
{
|
||||
if (atkMan.GetSkillStateActionName(skill, m_sciStateIDForStateAction[i], out name1, out name2))
|
||||
{
|
||||
m_SkillIDForStateAction = skill;
|
||||
BMLogger.LogError("HoangDev: atkMan.GetSkillStateActionName(ski");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
BMLogger.LogError(("HoangDev: atkMan.GetSkillStateActionName(ski\" return false;"));
|
||||
return false;
|
||||
}
|
||||
public CECSkill GetCurSkill() { return m_pCurSkill; }
|
||||
@@ -3105,7 +3098,6 @@ namespace BrewMonster
|
||||
vfx.transform.localPosition = Vector3.zero;
|
||||
|
||||
_stateGfxObjects[key] = vfx;
|
||||
// BMLogger.Log($"[HoangDev StateGFX] Playing: {path}, hook: {hook}, scale: {fScale}");
|
||||
}
|
||||
|
||||
// [中文] 在武器 CECModel 上移除状态效果 GFX(武器挂点逻辑未接入,暂存桩)
|
||||
@@ -3205,7 +3197,6 @@ namespace BrewMonster
|
||||
// Set part extend properties
|
||||
public void SetPartExtendProps(int iPropIdx, object pData)
|
||||
{
|
||||
// BMLogger.LogError($"HoangDev: SetPartExtendProps iPropIdx={iPropIdx} pData={pData} ");
|
||||
switch (iPropIdx)
|
||||
{
|
||||
case (int)ExtendPropertyClass.EXTPROPIDX_BASE:
|
||||
|
||||
@@ -18,7 +18,6 @@ public class CECMonster : CECNPC
|
||||
public override bool Init(int tid, in info_npc info, ReadOnlySpan<byte> packet, int infoOffset)
|
||||
{
|
||||
base.Init(tid, info, packet, infoOffset);
|
||||
//BrewMonster.BMLogger.Log("HoangDev: MonsterInit");
|
||||
var pDB = ElementDataManProvider.GetElementDataMan();
|
||||
DATA_TYPE DataType = default;
|
||||
m_pDBEssence = (MONSTER_ESSENCE)pDB.get_data_ptr((uint)tid, ID_SPACE.ID_SPACE_ESSENCE, ref DataType);
|
||||
|
||||
@@ -167,7 +167,6 @@ public class CECNPC : CECObject
|
||||
// ACHAR thường là UTF-16LE → len là số byte
|
||||
var nameBytes = r.ReadBytes(len);
|
||||
m_strName = System.Text.Encoding.Unicode.GetString(nameBytes);
|
||||
// BMLogger.LogError($"HoangDev:m_npcUI = {m_npcUI}, NPC Name = " + m_strName);
|
||||
if (m_npcUI != null)
|
||||
{
|
||||
m_npcUI.SetName(m_strName);
|
||||
@@ -337,7 +336,6 @@ public class CECNPC : CECObject
|
||||
{
|
||||
// [中文] 添加新状态效果 GFX
|
||||
// [English] Add new state GFX
|
||||
BMLogger.Log($"[HoangDev NPC StateGFX] Playing: {strGFXFile}, hook: {pvs.GetHH()}");
|
||||
m_pNPCModelPolicy.PlayGfx(strGFXFile,"HH_头顶" /*pvs.GetHH()*/);
|
||||
}
|
||||
}
|
||||
@@ -389,7 +387,6 @@ public class CECNPC : CECObject
|
||||
|
||||
public void OnMsgAttackHostResult(int idHost, int nDamage, int nFlag, int nSpeed)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: OnMsgAttackHostResultNPC");
|
||||
if (!IsDead())
|
||||
{
|
||||
// 🔹 Quay mặt về mục tiêu
|
||||
@@ -856,7 +853,6 @@ public class CECNPC : CECObject
|
||||
A3DVECTOR3 vPos = vDir * m_fMoveSpeed * deltaTime;
|
||||
A3DVECTOR3 exPPos = vPos + vCurPos;
|
||||
float fMoveDelta = Vector3.Magnitude(EC_Utility.ToVector3(exPPos) - EC_Utility.ToVector3(vCurPos));
|
||||
BMLogger.LogMono(this, $"HoangDev: m_vServerPos:{m_vServerPos},vCurPos:{vCurPos},vDir:{vDir},fDist:{fDist},vPos:{vPos},fMoveDelta:{fMoveDelta}");
|
||||
|
||||
if (fMoveDelta >= fDist)
|
||||
{
|
||||
@@ -1455,7 +1451,6 @@ public class CECNPC : CECObject
|
||||
public bool IsDirFixed() { return (m_dwStates & PlayerNPCState.GP_STATE_NPC_FIXDIR) != 0 ? true : false; }
|
||||
public void ReleaseWork(int iWorkType)
|
||||
{
|
||||
//BrewMonster.BMLogger.LogError("HoangDev : ReleaseWorkl :"+ iWorkType);
|
||||
Debug.Assert(iWorkType >= 0 && iWorkType < (int)WorkType.NUM_WORKTYPE);
|
||||
|
||||
switch (m_aWorks[iWorkType])
|
||||
@@ -1678,7 +1673,6 @@ public class CECNPC : CECObject
|
||||
public bool IsDead() { return (m_dwStates & PlayerNPCState.GP_STATE_CORPSE) != 0; }
|
||||
public void PlayMoveAction(int iMoveMode)
|
||||
{
|
||||
//BrewMonster.BMLogger.LogError($"HoangDev: PlayMoveAction {iMoveMode}");
|
||||
if (iMoveMode == (int)GPMoveMode.GP_MOVE_RUN || iMoveMode == (int)GPMoveMode.GP_MOVE_RETURN)
|
||||
{
|
||||
if (IsMonsterOrPet())
|
||||
@@ -1906,7 +1900,7 @@ public class CECNPC : CECObject
|
||||
if (animancer != null)
|
||||
{
|
||||
m_pNPCCECModel.SetNamedAnimancerComponent(animancer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ public class CECNPCServer : CECNPC
|
||||
public override bool Init(int tid, in info_npc info, ReadOnlySpan<byte> packet, int infoOffset)
|
||||
{
|
||||
base.Init(tid, info, packet, infoOffset);
|
||||
//BrewMonster.BMLogger.Log("HoangDev: MonsterInit");
|
||||
var pDB = ElementDataManProvider.GetElementDataMan();
|
||||
DATA_TYPE DataType = default;
|
||||
var data = pDB.get_data_ptr((uint)tid, ID_SPACE.ID_SPACE_ESSENCE, ref DataType);
|
||||
|
||||
@@ -19,23 +19,18 @@ public class NPCVisual : MonoBehaviour
|
||||
|
||||
public bool TryPlayAction(string animationName, CECAttackEvent cECAttackEvent, bool isHit = false, bool bRestart = true)
|
||||
{
|
||||
// BMLogger.LogMono(this, "HoangDev: TryPlayAction: " + animationName);
|
||||
|
||||
if (namedAnimancer == null) return false;
|
||||
// BMLogger.LogMono(this, "HoangDev: namedAnimancer == null: " + animationName);
|
||||
|
||||
if (namedAnimancer.IsPlaying(animationName)) return false;
|
||||
// BMLogger.LogMono(this, "HoangDev: namedAnimancerIsPlaying == null1: " + animationName);
|
||||
_currentState = namedAnimancer.TryPlay(animationName, fadeTime);
|
||||
if (isHit)
|
||||
{
|
||||
{
|
||||
if(_currentState != null)
|
||||
{
|
||||
_currentState.Events.OnEnd = () => SetHitOnEnd(cECAttackEvent);
|
||||
}
|
||||
}
|
||||
// if (_currentState != null)
|
||||
// BMLogger.LogMono(this, "HoangDev: _currentState != null1: " + _currentState.Clip.name);
|
||||
return _currentState != null;
|
||||
}
|
||||
private void SetHitOnEnd(CECAttackEvent cECAttackEvent)
|
||||
@@ -57,14 +52,6 @@ public class NPCVisual : MonoBehaviour
|
||||
}
|
||||
private void OnClearComActFlagEvent(ClearComActFlagEvent @event)
|
||||
{
|
||||
// if (_currentState != null)
|
||||
// BMLogger.LogError("HoangDev: OnClearComActFlagEvent _currentState:" + _currentState.Clip.name);
|
||||
|
||||
/*foreach (var state in _animationQueue)
|
||||
{
|
||||
BMLogger.LogMono(this,"HoangDev: OnClearComActFlagEvent state:" + state);
|
||||
}
|
||||
BMLogger.LogMono(this,"HoangDev: OnClearComActFlagEvent");*/
|
||||
_animationQueue.Clear();
|
||||
}
|
||||
|
||||
@@ -98,7 +85,6 @@ public class NPCVisual : MonoBehaviour
|
||||
animName1 = _animationQueue.Peek();
|
||||
if (_currentState.NormalizedTime < 1f) return;
|
||||
string animName = _animationQueue.Dequeue();
|
||||
BMLogger.LogMono(this,"HoangDev: PlayNext: " + animName);
|
||||
_currentState = namedAnimancer.TryPlay(animName);
|
||||
}
|
||||
private void OnDestroy()
|
||||
|
||||
@@ -2710,8 +2710,6 @@ namespace CSNetwork
|
||||
{
|
||||
gamedatasend gamedatasend = new gamedatasend();
|
||||
gamedatasend.Data = C2SCommandFactory.CreateNPCSevLearnSkillCmd(idSkill);
|
||||
// BMLogger.LogError("HoangDev : c2s_SendCmdNPCSevLearnSkill gamedatasend.Data : " + gamedatasend.Data.Size);
|
||||
// BMLogger.LogError("HoangDev : c2s_SendCmdNPCSevLearnSkill idSkill : " + idSkill);
|
||||
SendProtocol(gamedatasend);
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,6 @@ namespace BrewMonster.Network
|
||||
public void c2s_SendCmdStopMove(in Vector3 vDest, float fSpeed, int iMoveMode,
|
||||
byte byDir, ushort wStamp, int iTime)
|
||||
{
|
||||
BMLogger.LogWarning("HoangDev : c2s_SendCmdStopMove");
|
||||
Instance._gameSession.c2s_SendCmdStopMove(vDest, fSpeed, iMoveMode, byDir, wStamp, iTime);
|
||||
}
|
||||
public void c2s_CmdPlayerMove(in Vector3 vCurPos, in Vector3 vDest,
|
||||
@@ -658,7 +657,6 @@ namespace BrewMonster.Network
|
||||
|
||||
public static void c2s_CmdSitDown()
|
||||
{
|
||||
BMLogger.LogError("HoangDev: c2s_CmdSitDown");
|
||||
Instance._gameSession.c2s_SendCmdSitDown();
|
||||
}
|
||||
|
||||
|
||||
@@ -966,7 +966,6 @@ namespace BrewMonster
|
||||
return false;
|
||||
}
|
||||
}
|
||||
BMLogger.LogError("HoangDev: (CommandID)m_iCommand:"+(CommandID)m_iCommand);
|
||||
switch ((CommandID)m_iCommand)
|
||||
{
|
||||
case CMD_SITDOWN: pHost.CmdSitDown(!pHost.IsSitting()); break;
|
||||
|
||||
@@ -180,7 +180,6 @@ namespace BrewMonster.Scripts.Skills
|
||||
/// <param name="professionOverride">When set (anim test scene), filters catalog by this profession instead of querying host.</param>
|
||||
public void Initialize(int? professionOverride)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev CECHostSkillModel Initialize called");
|
||||
// Çå¿ÕËùÓм¼ÄÜ£¬·ÀÖ¹ÒòΪ¶à¸ö½ÇÉ«µÇ¼µ¼ÖÂÖØ¸´¼ÓÔØ¼¼ÄÜ
|
||||
Release();
|
||||
|
||||
@@ -197,7 +196,6 @@ namespace BrewMonster.Scripts.Skills
|
||||
}
|
||||
public void ProcessServiceList()
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: ProcessServiceList");
|
||||
if (m_npcListData == null)
|
||||
{
|
||||
BMLogger.LogError("CECHostSkillModel::ProcessServiceList, m_npcListData is null.");
|
||||
@@ -266,7 +264,6 @@ namespace BrewMonster.Scripts.Skills
|
||||
// Do not Clear m_npcListData: Initialize() may run ProcessServiceList again after Release();
|
||||
// clearing here left npcDataSize 0 on world re-entry. New packets replace m_npcListData in RecvNPCServiceList.
|
||||
}
|
||||
//BMLogger.LogError("HoangDev: m_npcListData.Size :"+ m_npcListData.Size);
|
||||
|
||||
}
|
||||
private readonly HashSet<int> m_curServiceSkills = new HashSet<int>();
|
||||
@@ -629,7 +626,6 @@ namespace BrewMonster.Scripts.Skills
|
||||
|
||||
private void Release()
|
||||
{
|
||||
//BMLogger.LogError("HoangDev CECHostSkillModel Release called");
|
||||
m_allProfSkills.Clear();
|
||||
|
||||
// Dọn sạch tất cả dictionary / map
|
||||
|
||||
@@ -66,7 +66,6 @@ public class AudioManager : MonoBehaviour
|
||||
|
||||
IEnumerator FadeInBGM(AudioClip clip, float fadeTime)
|
||||
{
|
||||
// BMLogger.LogError($"HoangDev: FadeInBGM fadeTime {fadeTime} clip: {clip.name}" );
|
||||
if (bgmSource.isPlaying)
|
||||
yield return StartCoroutine(FadeOutBGM(fadeTime));
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace BrewMonster
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.S) )
|
||||
OnSkillDragDrop();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
public void OnSkillDragDrop()
|
||||
{
|
||||
@@ -24,5 +24,3 @@ namespace BrewMonster
|
||||
}
|
||||
}
|
||||
|
||||
/*AString s = WC2AS(*pstr); // convert wide -> ansi/utf8 tùy macro bạn định nghĩa
|
||||
a_LogOutput(0, "HoangDev: 1 n=%d, pstr=%s", n, static_cast <const char*>(s));*/
|
||||
@@ -222,7 +222,6 @@ namespace BrewMonster.UI
|
||||
CDlgSkillSubListItem subListItem = pSub;
|
||||
if(subListItem == null )
|
||||
{
|
||||
// BMLogger.LogError("HoangDev: UpdateOneSubDlg subListItem is null for skillID " + skillID);
|
||||
return;
|
||||
}
|
||||
subListItem.UpdateSkill(skillID);
|
||||
@@ -281,24 +280,20 @@ namespace BrewMonster.UI
|
||||
|
||||
if (allRankProfSkills == null)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: AddDlgsOfOneRank allRankProfSkills is null");
|
||||
return;
|
||||
}
|
||||
if (IsEvil() && taoistRank.IsGodRank())
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: AddDlgsOfOneRank IsEvil() && taoistRank.IsGodRank()");
|
||||
return;
|
||||
}
|
||||
else if (!IsEvil() && taoistRank.IsEvilRank())
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: AddDlgsOfOneRank !IsEvil() && taoistRank.IsEvilRank()");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!allRankProfSkills.TryGetValue(rankID, out var rankItr) || rankItr == null || rankItr.Count == 0)
|
||||
{
|
||||
//BMLogger.LogError($"HoangDev: AddDlgsOfOneRank !allRankProfSkills.TryGetValue({rankID}, out var rankItr) || rankItr == null || rankItr.Count == 0");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -160,12 +160,10 @@ namespace BrewMonster
|
||||
{
|
||||
if (pHost.CheckSkillCastCondition(pSkill) == 0)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: QuickBar Skill Not Interact: " + (uint)pSkill.GetSkillID() + " : " + ElementSkill.GetIcon((uint)pSkill.GetSkillID()));
|
||||
pCell.SetInteract(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: QuickBar Skill Interact: " + (uint)pSkill.GetSkillID() + " : " + ElementSkill.GetIcon((uint)pSkill.GetSkillID()));
|
||||
pCell.SetInteract(false);
|
||||
}
|
||||
}
|
||||
@@ -182,7 +180,6 @@ namespace BrewMonster
|
||||
}
|
||||
else
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: QuickBar Skill CoolTime: " + (uint)pSkill.GetSkillID() + " : " + ElementSkill.GetIcon((uint)pSkill.GetSkillID()) + " CoolTime: " + pSkill.GetCoolingTime() + " CoolCnt: " + pSkill.GetCoolingCnt());
|
||||
pClock.SetProgressPos(pSkill.GetCoolingTime() - pSkill.GetCoolingCnt());
|
||||
}
|
||||
}
|
||||
@@ -459,7 +456,6 @@ namespace BrewMonster
|
||||
if (pSkill != null)
|
||||
{
|
||||
pCell.gameObject.SetActive(true);
|
||||
//BMLogger.Log("HoangDev: QuickBar Set Skill Icon: " + (uint)pSkill.GetSkillID() + " : " + ElementSkill.GetIcon((uint)pSkill.GetSkillID()));
|
||||
var nameskill = ElementSkill.GetIcon((uint)pSkill.GetSkillID());
|
||||
var slot = GetGameUIMan().SetCover(pCell, nameskill, EC_GAMEUI_ICONS.ICONS_SKILL);
|
||||
if (slot is AUIImagePicture picture)
|
||||
|
||||
@@ -167,7 +167,6 @@ namespace BrewMonster
|
||||
|
||||
public void UpdateSkill(int skillID)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: CDlgSkillSubListItem UpdateSkill skillID " + skillID);
|
||||
CECHostSkillModel model = CECHostSkillModel.Instance;
|
||||
m_skillID = skillID;
|
||||
m_curLevel = model.GetSkillCurrentLevel(m_skillID);
|
||||
@@ -291,7 +290,6 @@ namespace BrewMonster
|
||||
}
|
||||
}
|
||||
//if (m_skillID == 234)
|
||||
// BMLogger.LogError($"HoangDev: UpdateUpgradeBtn m_skillID:{m_skillID} spOK=" + spOK + ", moneyOK=" + moneyOK + ", preSkillOK=" + preSkillOK);
|
||||
if (spOK && moneyOK && preSkillOK)
|
||||
{
|
||||
m_upgradeDisabledReason = null;
|
||||
@@ -320,7 +318,6 @@ namespace BrewMonster
|
||||
}
|
||||
else
|
||||
{
|
||||
BMLogger.LogError("HoangDev: UpdateUpgradeBtn Skill is not served by NPC m_skillID:" + m_skillID);
|
||||
m_upgradeDisabledReason = GetStringFromTable(11321);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,6 @@ namespace BrewMonster
|
||||
{
|
||||
ClearPendingActionAssign();
|
||||
_pendingComboGroupIndex = -1;
|
||||
// Debug.Log("HoangDev: CreateSkillShortcut: " + currentSelectedSlotIndex + " : " + assignedSkill.GetSkillID());
|
||||
// CECShortcutSet pSCS = CECGameRun.Instance.GetHostPlayer().GetShortcutSet1(0);
|
||||
|
||||
a_pSCS[currentListIndex].CreateSkillShortcut(currentSelectedSlotIndex, assignedSkill);
|
||||
@@ -429,7 +428,6 @@ namespace BrewMonster
|
||||
if (pSkill != null)
|
||||
{
|
||||
pCell.gameObject.SetActive(true);
|
||||
//BMLogger.Log("HoangDev: QuickBar Set Skill Icon: " + (uint)pSkill.GetSkillID() + " : " + ElementSkill.GetIcon((uint)pSkill.GetSkillID()));
|
||||
var nameskill = ElementSkill.GetIcon((uint)pSkill.GetSkillID());
|
||||
var slot = GetGameUIMan().SetCover(pCell, nameskill, EC_GAMEUI_ICONS.ICONS_SKILL);
|
||||
if (slot is AUIImagePicture picture)
|
||||
@@ -531,7 +529,6 @@ namespace BrewMonster
|
||||
if (currentSelectedSlotIndex != -1)
|
||||
{
|
||||
CreateSkillShortcut();
|
||||
Debug.Log($"HoangDev: OnAssignSkillSelectionChanged: AfterCreateSkillShortcut: assignedSkillIsNull={(assignedSkill == null)} slotIndex={currentSelectedSlotIndex}");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -128,7 +128,6 @@ namespace BrewMonster
|
||||
|
||||
private void OnMsgHstHurtResult(ECMSG Msg)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev : OnMsgHstHurtResult");
|
||||
int cmd = Convert.ToInt32(Msg.dwParam2);
|
||||
if (cmd == CommandID.BE_HURT)
|
||||
{
|
||||
|
||||
@@ -29,7 +29,6 @@ namespace BrewMonster
|
||||
// 坐下 / 站起
|
||||
public bool CmdSitDown(bool bSitDown)
|
||||
{
|
||||
BMLogger.LogError("HoangDev: CmdSitDown:"+bSitDown);
|
||||
if (!CanDo(ActionCanDo.CANDO_SITDOWN))
|
||||
return false;
|
||||
|
||||
|
||||
@@ -135,7 +135,6 @@ namespace BrewMonster
|
||||
int iAction = (int)PLAYER_ACTION_TYPE.ACT_STAND;
|
||||
bool bSession = false;
|
||||
|
||||
BMLogger.LogError("HoangDev: idEmote "+idEmote);
|
||||
// Select action according to pose
|
||||
switch (idEmote)
|
||||
{
|
||||
|
||||
@@ -603,7 +603,6 @@ namespace BrewMonster
|
||||
}*/
|
||||
else if (GetEquipSkillByID(idSkill) == null)
|
||||
{
|
||||
BMLogger.LogError("HoangDev: pSkill " + pSkill);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -15,14 +15,12 @@ namespace BrewMonster
|
||||
{
|
||||
public void OnMsgHstCorrectPos(in ECMSG Msg)
|
||||
{
|
||||
//Debug.LogError("HoangDev : OnMsgHstCorrectPos");
|
||||
byte[] buf = (byte[])Msg.dwParam1; // chỗ bạn lưu pDataBuf
|
||||
GCHandle handle = GCHandle.Alloc(buf, GCHandleType.Pinned);
|
||||
cmd_host_correct_pos pCmd = (cmd_host_correct_pos)Marshal.PtrToStructure(
|
||||
handle.AddrOfPinnedObject(), typeof(cmd_host_correct_pos));
|
||||
handle.Free();
|
||||
//cmd_host_correct_pos pCmd = GPDataTypeHelper.FromBytes<cmd_host_correct_pos>((byte[])Msg.dwParam1);
|
||||
// Debug.LogError("HoangDev :pCmd.pos " + pCmd.pos);
|
||||
SetPos(pCmd.pos);
|
||||
m_vVelocity.Clear();
|
||||
m_CDRInfo.vAbsVelocity.Clear();
|
||||
|
||||
@@ -359,7 +359,6 @@ namespace BrewMonster
|
||||
|
||||
public async Task<bool> LoadResources()
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: CECHostPlayer::LoadResources");
|
||||
RoleInfo RoleInfo = UnityGameSession.Instance.GetRoleInfo();
|
||||
m_iProfession = RoleInfo.occupation;
|
||||
m_iGender = RoleInfo.gender;
|
||||
@@ -489,7 +488,6 @@ namespace BrewMonster
|
||||
public void ProcessMessage(in ECMSG Msg)
|
||||
{
|
||||
var msg = (int)Msg.dwMsg;
|
||||
//Debug.LogError("HoangDev : ProcessMessageProcessMessageProcessMessage " + msg);
|
||||
switch (msg)
|
||||
{
|
||||
case EC_MsgDef.MSG_HST_CORRECTPOS: OnMsgHstCorrectPos(Msg); break;
|
||||
@@ -1303,7 +1301,6 @@ namespace BrewMonster
|
||||
// Message MSG_HST_SELTARGET handler
|
||||
void OnMsgHstSelTarget(ECMSG Msg)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: OnMsgHstSelTarget");
|
||||
if (Convert.ToInt32(Msg.dwParam2) == CommandID.SELECT_TARGET)
|
||||
{
|
||||
var data = (byte[])Msg.dwParam1;
|
||||
@@ -2098,14 +2095,12 @@ namespace BrewMonster
|
||||
bRet = true;
|
||||
if (idTarget == 0)
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: HostPlayer Unsetlect npc");
|
||||
UnityGameSession.c2s_CmdUnselect();
|
||||
m_idSelTarget = 0;
|
||||
m_idUCSelTarget = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
//BMLogger.LogError("HoangDev: HostPlayer setlect npc");
|
||||
UnityGameSession.c2s_CmdSelectTarget(idTarget);
|
||||
m_idSelTarget = idTarget;
|
||||
m_idUCSelTarget = idTarget;
|
||||
@@ -3376,7 +3371,6 @@ namespace BrewMonster
|
||||
|
||||
if (iPose == (int)RoleExpression.ROLEEXP_SITDOWN)
|
||||
{
|
||||
BMLogger.LogError("HoangDev: c2s_CmdSessionEmote: "+iPose);
|
||||
UnityGameSession.c2s_CmdSessionEmote(iPose);
|
||||
}
|
||||
else if (iPose == (int)RoleExpression.ROLEEXP_KISS)
|
||||
|
||||
@@ -222,7 +222,6 @@ namespace BrewMonster
|
||||
{
|
||||
return;
|
||||
}
|
||||
BMLogger.LogError("HoangDev animationName:"+animationName);
|
||||
bool isState = namedAnimancer.States.TryGet(animationName, out var existingState) ? true : false;
|
||||
if (isState)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user