WIP: Rename identifiers containing Korean words in source code #33

Draft
haydukk11 wants to merge 6 commits from haydukk11/server:no-korean-names into master
6 changed files with 41 additions and 41 deletions
Showing only changes of commit ba8bad4337 - Show all commits

View File

@ -159,7 +159,7 @@ void CHARACTER::Initialize()
m_pkChrTarget = NULL; m_pkChrTarget = NULL;
m_pkMuyeongEvent = NULL; m_pkFlameSpiritEvent = NULL;
m_pkWarpNPCEvent = NULL; m_pkWarpNPCEvent = NULL;
m_pkDeadEvent = NULL; m_pkDeadEvent = NULL;
@ -490,7 +490,7 @@ void CHARACTER::Destroy()
m_set_pkChrSpawnedBy.clear(); m_set_pkChrSpawnedBy.clear();
StopMuyeongEvent(); StopFlameSpiritEvent();
event_cancel(&m_pkWarpNPCEvent); event_cancel(&m_pkWarpNPCEvent);
event_cancel(&m_pkRecoveryEvent); event_cancel(&m_pkRecoveryEvent);
event_cancel(&m_pkDeadEvent); event_cancel(&m_pkDeadEvent);
@ -3432,7 +3432,7 @@ void CHARACTER::PointChange(BYTE type, int amount, bool bAmount, bool bBroadcast
case POINT_KILL_HP_RECOVERY: // 75 case POINT_KILL_HP_RECOVERY: // 75
case POINT_HIT_HP_RECOVERY: case POINT_HIT_HP_RECOVERY:
case POINT_HIT_SP_RECOVERY: case POINT_HIT_SP_RECOVERY:
case POINT_MANASHIELD: case POINT_DARK_PROTECTION:
case POINT_ATT_BONUS: case POINT_ATT_BONUS:
case POINT_DEF_BONUS: case POINT_DEF_BONUS:
case POINT_SKILL_DAMAGE_BONUS: case POINT_SKILL_DAMAGE_BONUS:
@ -4807,11 +4807,11 @@ void CHARACTER::OnMove(bool bIsAttack)
if (IsAffectFlag(AFF_NINJA_BLADEFIGHT_DISGUISE)) if (IsAffectFlag(AFF_NINJA_BLADEFIGHT_DISGUISE))
{ {
RemoveAffect(SKILL_NINJA_BLADEFIGHT_DISGUISE); RemoveAffect(SKILL_NINJA_BLADEFIGHT_DISGUISE);
SetAffectedEunhyung(); SetAffectedDisguise();
} }
else else
{ {
ClearAffectedEunhyung(); ClearAffectedDisguise();
} }
/*if (IsAffectFlag(AFF_JEONSIN)) /*if (IsAffectFlag(AFF_JEONSIN))

View File

@ -75,7 +75,7 @@ enum
FLY_FIREWORK_CHRISTMAS, FLY_FIREWORK_CHRISTMAS,
FLY_CHAIN_LIGHTNING, FLY_CHAIN_LIGHTNING,
FLY_HP_SMALL, FLY_HP_SMALL,
FLY_SKILL_MUYEONG, FLY_SKILL_FLAME_SPIRIT,
}; };
enum EDamageType enum EDamageType
@ -225,7 +225,7 @@ enum EPointTypes
POINT_HIT_HP_RECOVERY, // 100 POINT_HIT_HP_RECOVERY, // 100
POINT_HIT_SP_RECOVERY, // 101 POINT_HIT_SP_RECOVERY, // 101
POINT_MANASHIELD, // 102 흑신수호 스킬에 의한 마나쉴드 효과 정도 POINT_DARK_PROTECTION, // 102 흑신수호 스킬에 의한 마나쉴드 효과 정도
POINT_PARTY_BUFFER_BONUS, // 103 POINT_PARTY_BUFFER_BONUS, // 103
POINT_PARTY_SKILL_MASTER_BONUS, // 104 POINT_PARTY_SKILL_MASTER_BONUS, // 104
@ -1414,15 +1414,15 @@ class CHARACTER : public CEntity, public CFSM, public CHorseRider
DWORD m_adwMobSkillCooltime[MOB_SKILL_MAX_NUM]; DWORD m_adwMobSkillCooltime[MOB_SKILL_MAX_NUM];
// END_OF_MOB_SKILL // END_OF_MOB_SKILL
// for SKILL_MUYEONG // for SKILL_SURA_BLACKMAGIC_FLAME_SPIRIT
public: public:
void StartMuyeongEvent(); void StartFlameSpiritEvent();
void StopMuyeongEvent(); void StopFlameSpiritEvent();
private: private:
LPEVENT m_pkMuyeongEvent; LPEVENT m_pkFlameSpiritEvent;
// for SKILL_CHAIN lighting // for SKILL_SHAMAN_HEALING_LIGHTNING_CLAW lighting
public: public:
int GetChainLightningIndex() const { return m_iChainLightingIndex; } int GetChainLightningIndex() const { return m_iChainLightingIndex; }
void IncChainLightningIndex() { ++m_iChainLightingIndex; } void IncChainLightningIndex() { ++m_iChainLightingIndex; }
@ -1435,14 +1435,14 @@ class CHARACTER : public CEntity, public CFSM, public CHorseRider
int m_iChainLightingIndex; int m_iChainLightingIndex;
CHARACTER_SET m_setExceptChainLighting; CHARACTER_SET m_setExceptChainLighting;
// for SKILL_EUNHYUNG // for SKILL_NINJA_BLADEFIGHT_DISGUISE
public: public:
void SetAffectedEunhyung(); void SetAffectedDisguise();
void ClearAffectedEunhyung() { m_dwAffectedEunhyungLevel = 0; } void ClearAffectedDisguise() { m_dwAffectedDisguiseLevel = 0; }
bool GetAffectedEunhyung() const { return m_dwAffectedEunhyungLevel; } bool GetAffectedDisguise() const { return m_dwAffectedDisguiseLevel; }
private: private:
DWORD m_dwAffectedEunhyungLevel; DWORD m_dwAffectedDisguiseLevel;
// //
// Skill levels // Skill levels

View File

@ -660,9 +660,9 @@ void CHARACTER::ComputeAffect(CAffect * pkAff, bool bAdd)
if (pkAff->dwType == SKILL_SURA_BLACKMAGIC_FLAME_SPIRIT) if (pkAff->dwType == SKILL_SURA_BLACKMAGIC_FLAME_SPIRIT)
{ {
if (bAdd) if (bAdd)
StartMuyeongEvent(); StartFlameSpiritEvent();
else else
StopMuyeongEvent(); StopFlameSpiritEvent();
} }
} }

View File

@ -2024,9 +2024,9 @@ bool CHARACTER::Damage(LPCHARACTER pAttacker, int dam, EDamageType type) // retu
// //
if (IsAffectFlag(AFF_SURA_BLACKMAGIC_DARK_PROTECTION)) if (IsAffectFlag(AFF_SURA_BLACKMAGIC_DARK_PROTECTION))
{ {
// POINT_MANASHIELD 는 작아질수록 좋다 // POINT_DARK_PROTECTION ´Â ÀÛ¾ÆÁú¼ö·Ï ÁÁ´Ù
int iDamageSPPart = dam / 3; int iDamageSPPart = dam / 3;
int iDamageToSP = iDamageSPPart * GetPoint(POINT_MANASHIELD) / 100; int iDamageToSP = iDamageSPPart * GetPoint(POINT_DARK_PROTECTION) / 100;
int iSP = GetSP(); int iSP = GetSP();
// SP가 있으면 무조건 데미지 절반 감소 // SP가 있으면 무조건 데미지 절반 감소
@ -2039,7 +2039,7 @@ bool CHARACTER::Damage(LPCHARACTER pAttacker, int dam, EDamageType type) // retu
{ {
// 정신력이 모자라서 피가 더 깍여야할?? // 정신력이 모자라서 피가 더 깍여야할??
PointChange(POINT_SP, -GetSP()); PointChange(POINT_SP, -GetSP());
dam -= iSP * 100 / std::max(GetPoint(POINT_MANASHIELD), 1); dam -= iSP * 100 / std::max(GetPoint(POINT_DARK_PROTECTION), 1);
} }
} }
@ -2845,7 +2845,7 @@ class CFuncShoot
return; return;
m_me->m_SkillUseInfo[m_bType].SetMainTargetVID(dwTargetVID); m_me->m_SkillUseInfo[m_bType].SetMainTargetVID(dwTargetVID);
/*if (m_bType == SKILL_BIPABU || m_bType == SKILL_KWANKYEOK) /*if (m_bType == SKILL_SHAMAN_DRAGON_FLYING_TALISMAN || m_bType == SKILL_NINJA_ARCHERY_ARROW_SHOWER)
m_me->m_SkillUseInfo[m_bType].ResetHitCount();*/ m_me->m_SkillUseInfo[m_bType].ResetHitCount();*/
} }
@ -2943,7 +2943,7 @@ class CFuncShoot
case SKILL_NINJA_ARCHERY_REPETITIVE_SHOT: // 연사 case SKILL_NINJA_ARCHERY_REPETITIVE_SHOT: // 연사
{ {
//int iUseArrow = 2 + (m_me->GetSkillPower(SKILL_YEONSA) *6/100); //int iUseArrow = 2 + (m_me->GetSkillPower(SKILL_NINJA_ARCHERY_REPETITIVE_SHOT) *6/100);
int iUseArrow = 1; int iUseArrow = 1;
// 토탈만 계산하는경우 // 토탈만 계산하는경우
@ -3000,7 +3000,7 @@ class CFuncShoot
if (pkVictim->CanBeginFight()) if (pkVictim->CanBeginFight())
pkVictim->BeginFight(m_me); pkVictim->BeginFight(m_me);
SPDLOG_DEBUG("{} gigung {}", m_me->GetName(), pkVictim->GetName()); SPDLOG_DEBUG("{} poison arrow {}", m_me->GetName(), pkVictim->GetName());
m_me->ComputeSkill(m_bType, pkVictim); m_me->ComputeSkill(m_bType, pkVictim);
m_me->UseArrow(pkArrow, iUseArrow); m_me->UseArrow(pkArrow, iUseArrow);
} }
@ -3018,7 +3018,7 @@ class CFuncShoot
if (pkVictim->CanBeginFight()) if (pkVictim->CanBeginFight())
pkVictim->BeginFight(m_me); pkVictim->BeginFight(m_me);
SPDLOG_DEBUG("{} hwajo {}", m_me->GetName(), pkVictim->GetName()); SPDLOG_DEBUG("{} fire arrow {}", m_me->GetName(), pkVictim->GetName());
m_me->ComputeSkill(m_bType, pkVictim); m_me->ComputeSkill(m_bType, pkVictim);
m_me->UseArrow(pkArrow, iUseArrow); m_me->UseArrow(pkArrow, iUseArrow);
} }

View File

@ -127,9 +127,9 @@ int CHARACTER::GetChainLightningMaxCount() const
return aiChainLightningCountBySkillLevel[std::min<int>(SKILL_MAX_LEVEL, GetSkillLevel(SKILL_SHAMAN_HEALING_LIGHTNING_CLAW))]; return aiChainLightningCountBySkillLevel[std::min<int>(SKILL_MAX_LEVEL, GetSkillLevel(SKILL_SHAMAN_HEALING_LIGHTNING_CLAW))];
} }
void CHARACTER::SetAffectedEunhyung() void CHARACTER::SetAffectedDisguise()
{ {
m_dwAffectedEunhyungLevel = GetSkillPower(SKILL_NINJA_BLADEFIGHT_DISGUISE); m_dwAffectedDisguiseLevel = GetSkillPower(SKILL_NINJA_BLADEFIGHT_DISGUISE);
} }
void CHARACTER::SetSkillGroup(BYTE bSkillGroup) void CHARACTER::SetSkillGroup(BYTE bSkillGroup)
@ -1159,10 +1159,10 @@ struct FuncSplashDamage
m_pkSk->SetPointVar("chain", m_pkChr->GetChainLightningIndex()); m_pkSk->SetPointVar("chain", m_pkChr->GetChainLightningIndex());
m_pkChr->IncChainLightningIndex(); m_pkChr->IncChainLightningIndex();
bool bUnderEunhyung = m_pkChr->GetAffectedEunhyung() > 0; // ÀÌ°Ç ¿Ö ¿©±â¼­ ÇÏÁö?? bool bUnderDisguise = m_pkChr->GetAffectedDisguise() > 0; // ÀÌ°Ç ¿Ö ¿©±â¼­ ÇÏÁö??
m_pkSk->SetPointVar("ek", m_pkChr->GetAffectedEunhyung()*1./100); m_pkSk->SetPointVar("ek", m_pkChr->GetAffectedDisguise()*1./100);
//m_pkChr->ClearAffectedEunhyung(); //m_pkChr->ClearAffectedDisguise();
SetPolyVarForAttack(m_pkChr, m_pkSk, m_pkWeapon); SetPolyVarForAttack(m_pkChr, m_pkSk, m_pkWeapon);
int iAmount = 0; int iAmount = 0;
@ -1192,7 +1192,7 @@ struct FuncSplashDamage
{ {
adjust = 1.5f; adjust = 1.5f;
if (bUnderEunhyung) if (bUnderDisguise)
adjust += 0.5f; adjust += 0.5f;
if (m_pkChr->GetWear(WEAR_WEAPON) && m_pkChr->GetWear(WEAR_WEAPON)->GetSubType() == WEAPON_DAGGER) if (m_pkChr->GetWear(WEAR_WEAPON) && m_pkChr->GetWear(WEAR_WEAPON)->GetSubType() == WEAPON_DAGGER)
@ -1210,7 +1210,7 @@ struct FuncSplashDamage
if ( !LC_IsYMIR() ) if ( !LC_IsYMIR() )
{ {
if (bUnderEunhyung) if (bUnderDisguise)
adjust += 0.5f; adjust += 0.5f;
if (m_pkChr->GetWear(WEAR_WEAPON) && m_pkChr->GetWear(WEAR_WEAPON)->GetSubType() == WEAPON_DAGGER) if (m_pkChr->GetWear(WEAR_WEAPON) && m_pkChr->GetWear(WEAR_WEAPON)->GetSubType() == WEAPON_DAGGER)
@ -2704,7 +2704,7 @@ EVENTFUNC(skill_muyoung_event)
if (!ch->IsAffectFlag(AFF_SURA_BLACKMAGIC_FLAME_SPIRIT)) if (!ch->IsAffectFlag(AFF_SURA_BLACKMAGIC_FLAME_SPIRIT))
{ {
ch->StopMuyeongEvent(); ch->StopFlameSpiritEvent();
return 0; return 0;
} }
@ -2716,7 +2716,7 @@ EVENTFUNC(skill_muyoung_event)
// 2. Shoot! // 2. Shoot!
if (f.GetVictim()) if (f.GetVictim())
{ {
ch->CreateFly(FLY_SKILL_MUYEONG, f.GetVictim()); ch->CreateFly(FLY_SKILL_FLAME_SPIRIT, f.GetVictim());
ch->ComputeSkill(SKILL_SURA_BLACKMAGIC_FLAME_SPIRIT, f.GetVictim()); ch->ComputeSkill(SKILL_SURA_BLACKMAGIC_FLAME_SPIRIT, f.GetVictim());
} }
} }
@ -2724,20 +2724,20 @@ EVENTFUNC(skill_muyoung_event)
return PASSES_PER_SEC(3); return PASSES_PER_SEC(3);
} }
void CHARACTER::StartMuyeongEvent() void CHARACTER::StartFlameSpiritEvent()
{ {
if (m_pkMuyeongEvent) if (m_pkFlameSpiritEvent)
return; return;
char_event_info* info = AllocEventInfo<char_event_info>(); char_event_info* info = AllocEventInfo<char_event_info>();
info->ch = this; info->ch = this;
m_pkMuyeongEvent = event_create(skill_muyoung_event, info, PASSES_PER_SEC(1)); m_pkFlameSpiritEvent = event_create(skill_muyoung_event, info, PASSES_PER_SEC(1));
} }
void CHARACTER::StopMuyeongEvent() void CHARACTER::StopFlameSpiritEvent()
{ {
event_cancel(&m_pkMuyeongEvent); event_cancel(&m_pkFlameSpiritEvent);
} }
void CHARACTER::SkillLearnWaitMoreTimeMessage(DWORD ms) void CHARACTER::SkillLearnWaitMoreTimeMessage(DWORD ms)

View File

@ -72,7 +72,7 @@ struct SPointOnType
{ "HIT_HP_RECOVER", POINT_HIT_HP_RECOVERY }, { "HIT_HP_RECOVER", POINT_HIT_HP_RECOVERY },
{ "HIT_SP_RECOVER", POINT_HIT_SP_RECOVERY }, { "HIT_SP_RECOVER", POINT_HIT_SP_RECOVERY },
{ "CRITICAL", POINT_CRITICAL_PCT }, { "CRITICAL", POINT_CRITICAL_PCT },
{ "MANASHIELD", POINT_MANASHIELD }, { "MANASHIELD", POINT_DARK_PROTECTION },
{ "SKILL_DAMAGE_BONUS", POINT_SKILL_DAMAGE_BONUS }, { "SKILL_DAMAGE_BONUS", POINT_SKILL_DAMAGE_BONUS },
{ "NORMAL_HIT_DAMAGE_BONUS", POINT_NORMAL_HIT_DAMAGE_BONUS }, { "NORMAL_HIT_DAMAGE_BONUS", POINT_NORMAL_HIT_DAMAGE_BONUS },
{ "\n", POINT_NONE }, { "\n", POINT_NONE },