diff --git a/src/game/src/affect.h b/src/game/src/affect.h index 729a47a..b4b1b49 100644 --- a/src/game/src/affect.h +++ b/src/game/src/affect.h @@ -137,7 +137,7 @@ enum EAffectBits AFF_WAR_BODY_AURA, // °Ë°æ AFF_WAR_MENTAL_STRONG_BODY, // õ±ÙÃß AFF_NINJA_ARCHERY_FEATHER_WALK, // °æ°ø¼ú - AFF_NINJA_BLADEFIGHT_DISGUISE, // ÀºÇü¹ý + AFF_NINJA_BLADEFIGHT_STEALTH, // ÀºÇü¹ý AFF_SURA_WEAPONRY_ENCHANTED_BLADE, // ±Í°Ë AFF_SURA_WEAPONRY_FEAR, // °øÆ÷ AFF_SURA_WEAPONRY_ENCHANTED_ARMOUR, // ÁÖ¸¶°© diff --git a/src/game/src/char.cpp b/src/game/src/char.cpp index 4be6a94..d05f83a 100644 --- a/src/game/src/char.cpp +++ b/src/game/src/char.cpp @@ -4804,14 +4804,14 @@ void CHARACTER::OnMove(bool bIsAttack) if (IsAffectFlag(AFF_REVIVE_INVISIBLE)) RemoveAffect(AFFECT_REVIVE_INVISIBLE); - if (IsAffectFlag(AFF_NINJA_BLADEFIGHT_DISGUISE)) + if (IsAffectFlag(AFF_NINJA_BLADEFIGHT_STEALTH)) { - RemoveAffect(SKILL_NINJA_BLADEFIGHT_DISGUISE); - SetAffectedDisguise(); + RemoveAffect(SKILL_NINJA_BLADEFIGHT_STEALTH); + SetAffectedStealth(); } else { - ClearAffectedDisguise(); + ClearAffectedStealth(); } /*if (IsAffectFlag(AFF_JEONSIN)) diff --git a/src/game/src/char.h b/src/game/src/char.h index f984118..ca215ad 100644 --- a/src/game/src/char.h +++ b/src/game/src/char.h @@ -1435,14 +1435,14 @@ class CHARACTER : public CEntity, public CFSM, public CHorseRider int m_iChainLightingIndex; CHARACTER_SET m_setExceptChainLighting; - // for SKILL_NINJA_BLADEFIGHT_DISGUISE + // for SKILL_NINJA_BLADEFIGHT_STEALTH public: - void SetAffectedDisguise(); - void ClearAffectedDisguise() { m_dwAffectedDisguiseLevel = 0; } - bool GetAffectedDisguise() const { return m_dwAffectedDisguiseLevel; } + void SetAffectedStealth(); + void ClearAffectedStealth() { m_dwAffectedStealthLevel = 0; } + bool GetAffectedStealth() const { return m_dwAffectedStealthLevel; } private: - DWORD m_dwAffectedDisguiseLevel; + DWORD m_dwAffectedStealthLevel; // // Skill levels diff --git a/src/game/src/char_affect.cpp b/src/game/src/char_affect.cpp index f618ed0..54527e1 100644 --- a/src/game/src/char_affect.cpp +++ b/src/game/src/char_affect.cpp @@ -747,8 +747,8 @@ void CHARACTER::RemoveGoodAffect() RemoveAffect(SKILL_WAR_BODY_BERSERK); RemoveAffect(SKILL_WAR_BODY_AURA); - RemoveAffect(SKILL_WAR_MENTAL_SWORD_STRIKE); - RemoveAffect(SKILL_NINJA_BLADEFIGHT_DISGUISE); + RemoveAffect(SKILL_WAR_MENTAL_STUMP); + RemoveAffect(SKILL_NINJA_BLADEFIGHT_STEALTH); RemoveAffect(SKILL_NINJA_ARCHERY_FEATHER_WALK); RemoveAffect(SKILL_SURA_WEAPONRY_ENCHANTED_BLADE); RemoveAffect(SKILL_SURA_WEAPONRY_FEAR); @@ -758,7 +758,7 @@ void CHARACTER::RemoveGoodAffect() RemoveAffect(SKILL_SHAMAN_DRAGON_REFLECT); RemoveAffect(SKILL_SHAMAN_HEALING_SWIFTNESS); RemoveAffect(SKILL_SHAMAN_HEALING_ATTACK); - RemoveAffect(SKILL_SHAMAN_DRAGON_DRAGONS_AID); + RemoveAffect(SKILL_SHAMAN_DRAGON_DRAGONS_STRENGTH); } bool CHARACTER::IsGoodAffect(BYTE bAffectType) const @@ -775,8 +775,8 @@ bool CHARACTER::IsGoodAffect(BYTE bAffectType) const case (SKILL_WAR_BODY_BERSERK): case (SKILL_WAR_BODY_AURA): - case (SKILL_WAR_MENTAL_SWORD_STRIKE): - case (SKILL_NINJA_BLADEFIGHT_DISGUISE): + case (SKILL_WAR_MENTAL_STUMP): + case (SKILL_NINJA_BLADEFIGHT_STEALTH): case (SKILL_NINJA_ARCHERY_FEATHER_WALK): case (SKILL_SURA_WEAPONRY_ENCHANTED_BLADE): case (SKILL_SURA_WEAPONRY_FEAR): @@ -786,7 +786,7 @@ bool CHARACTER::IsGoodAffect(BYTE bAffectType) const case (SKILL_SHAMAN_DRAGON_REFLECT): case (SKILL_SHAMAN_HEALING_SWIFTNESS): case (SKILL_SHAMAN_HEALING_ATTACK): - case (SKILL_SHAMAN_DRAGON_DRAGONS_AID): + case (SKILL_SHAMAN_DRAGON_DRAGONS_STRENGTH): return true; } return false; diff --git a/src/game/src/char_battle.cpp b/src/game/src/char_battle.cpp index 397e953..9ecbad2 100644 --- a/src/game/src/char_battle.cpp +++ b/src/game/src/char_battle.cpp @@ -3050,7 +3050,7 @@ class CFuncShoot case SKILL_SURA_BLACKMAGIC_SPIRIT_STRIKE: case SKILL_SHAMAN_DRAGON_FLYING_TALISMAN: case SKILL_SHAMAN_HEALING_LIGHTNING_THROW: - case SKILL_WAR_MENTAL_AMBUSH: + case SKILL_WAR_MENTAL_SWORD_STRIKE: case SKILL_NINJA_BLADEFIGHT_POISONOUS_CLOUD: case SKILL_SURA_BLACKMAGIC_DARK_ORB: case SKILL_SURA_WEAPONRY_DISPEL: @@ -3186,7 +3186,7 @@ LPCHARACTER CHARACTER::GetNearestVictim(LPCHARACTER pkChr) if (!pAttacker) continue; - if (pAttacker->IsAffectFlag(AFF_NINJA_BLADEFIGHT_DISGUISE) || + if (pAttacker->IsAffectFlag(AFF_NINJA_BLADEFIGHT_STEALTH) || pAttacker->IsAffectFlag(AFF_INVISIBILITY) || pAttacker->IsAffectFlag(AFF_REVIVE_INVISIBLE)) continue; diff --git a/src/game/src/char_item.cpp b/src/game/src/char_item.cpp index 370e2a0..ba93ecd 100644 --- a/src/game/src/char_item.cpp +++ b/src/game/src/char_item.cpp @@ -7277,7 +7277,7 @@ void CHARACTER::AutoRecoveryItemProcess(const EAffectTypes type) return; { - const DWORD stunSkills[] = { SKILL_WAR_BODY_DASH, SKILL_WAR_MENTAL_AMBUSH, SKILL_SHAMAN_HEALING_SUMMON_LIGHTNING, SKILL_NINJA_ARCHERY_POISON_ARROW }; + const DWORD stunSkills[] = { SKILL_WAR_BODY_DASH, SKILL_WAR_MENTAL_SWORD_STRIKE, SKILL_SHAMAN_HEALING_SUMMON_LIGHTNING, SKILL_NINJA_ARCHERY_POISON_ARROW }; for (size_t i=0 ; i < sizeof(stunSkills)/sizeof(DWORD) ; ++i) { diff --git a/src/game/src/char_skill.cpp b/src/game/src/char_skill.cpp index 9b05fb7..f00bb21 100644 --- a/src/game/src/char_skill.cpp +++ b/src/game/src/char_skill.cpp @@ -127,9 +127,9 @@ int CHARACTER::GetChainLightningMaxCount() const return aiChainLightningCountBySkillLevel[std::min(SKILL_MAX_LEVEL, GetSkillLevel(SKILL_SHAMAN_HEALING_LIGHTNING_CLAW))]; } -void CHARACTER::SetAffectedDisguise() +void CHARACTER::SetAffectedStealth() { - m_dwAffectedDisguiseLevel = GetSkillPower(SKILL_NINJA_BLADEFIGHT_DISGUISE); + m_dwAffectedStealthLevel = GetSkillPower(SKILL_NINJA_BLADEFIGHT_STEALTH); } void CHARACTER::SetSkillGroup(BYTE bSkillGroup) @@ -239,13 +239,13 @@ bool CHARACTER::IsLearnableSkill(DWORD dwSkillVnum) const return true; } - if (SKILL_8_A_ANTI_WAR_MENTAL_BASH <= dwSkillVnum && dwSkillVnum <= SKILL_8_D_ANTI_SHAMAN_HEALING_SUMMON_LIGHTNING) + if (SKILL_8_A_ANTI_WAR_MENTAL_SPIRIT_STRIKE <= dwSkillVnum && dwSkillVnum <= SKILL_8_D_ANTI_SHAMAN_HEALING_SUMMON_LIGHTNING) { for (int i=0 ; i < 4 ; i++) { - if (unsigned(SKILL_8_A_ANTI_WAR_MENTAL_BASH + i) != dwSkillVnum) + if (unsigned(SKILL_8_A_ANTI_WAR_MENTAL_SPIRIT_STRIKE + i) != dwSkillVnum) { - if (0 != GetSkillLevel(SKILL_8_A_ANTI_WAR_MENTAL_BASH + i)) + if (0 != GetSkillLevel(SKILL_8_A_ANTI_WAR_MENTAL_SPIRIT_STRIKE + i)) return false; } } @@ -1159,10 +1159,10 @@ struct FuncSplashDamage m_pkSk->SetPointVar("chain", m_pkChr->GetChainLightningIndex()); m_pkChr->IncChainLightningIndex(); - bool bUnderDisguise = m_pkChr->GetAffectedDisguise() > 0; // ÀÌ°Ç ¿Ö ¿©±â¼­ ÇÏÁö?? + bool bUnderStealth = m_pkChr->GetAffectedStealth() > 0; // ÀÌ°Ç ¿Ö ¿©±â¼­ ÇÏÁö?? - m_pkSk->SetPointVar("ek", m_pkChr->GetAffectedDisguise()*1./100); - //m_pkChr->ClearAffectedDisguise(); + m_pkSk->SetPointVar("ek", m_pkChr->GetAffectedStealth()*1./100); + //m_pkChr->ClearAffectedStealth(); SetPolyVarForAttack(m_pkChr, m_pkSk, m_pkWeapon); int iAmount = 0; @@ -1192,7 +1192,7 @@ struct FuncSplashDamage { adjust = 1.5f; - if (bUnderDisguise) + if (bUnderStealth) adjust += 0.5f; if (m_pkChr->GetWear(WEAR_WEAPON) && m_pkChr->GetWear(WEAR_WEAPON)->GetSubType() == WEAPON_DAGGER) @@ -1210,7 +1210,7 @@ struct FuncSplashDamage if ( !LC_IsYMIR() ) { - if (bUnderDisguise) + if (bUnderStealth) adjust += 0.5f; if (m_pkChr->GetWear(WEAR_WEAPON) && m_pkChr->GetWear(WEAR_WEAPON)->GetSubType() == WEAPON_DAGGER) @@ -1358,7 +1358,7 @@ struct FuncSplashDamage case SKILL_NINJA_BLADEFIGHT_AMBUSH: AntiSkillID = SKILL_7_B_ANTI_NINJA_BLADEFIGHT_AMBUSH; break; case SKILL_SURA_WEAPONRY_FINGER_STRIKE: AntiSkillID = SKILL_7_C_ANTI_SURA_WEAPONRY_FINGER_STRIKE; break; case SKILL_SHAMAN_DRAGON_SHOOTING_DRAGON: AntiSkillID = SKILL_7_D_ANTI_SHAMAN_DRAGON_SHOOTING_DRAGON; break; - case SKILL_WAR_MENTAL_BASH: AntiSkillID = SKILL_8_A_ANTI_WAR_MENTAL_BASH; break; + case SKILL_WAR_MENTAL_SPIRIT_STRIKE: AntiSkillID = SKILL_8_A_ANTI_WAR_MENTAL_SPIRIT_STRIKE; break; case SKILL_NINJA_ARCHERY_REPETITIVE_SHOT: AntiSkillID = SKILL_8_B_ANTI_NINJA_ARCHERY_REPETITIVE_SHOT; break; case SKILL_SURA_BLACKMAGIC_DARK_ORB: AntiSkillID = SKILL_8_C_ANTI_SURA_BLACKMAGIC_DARK_ORB; break; case SKILL_SHAMAN_HEALING_SUMMON_LIGHTNING: AntiSkillID = SKILL_8_D_ANTI_SHAMAN_HEALING_SUMMON_LIGHTNING; break; @@ -2280,12 +2280,12 @@ int CHARACTER::ComputeSkill(DWORD dwVnum, LPCHARACTER pkVictim, BYTE bSkillLevel //if (g_iUseLocale) if ( !LC_IsYMIR() ) { - if ((pkSk->dwVnum == SKILL_WAR_MENTAL_SWORD_STRIKE && GetUsedSkillMasterType(pkSk->dwVnum) < SKILL_GRAND_MASTER)) + if ((pkSk->dwVnum == SKILL_WAR_MENTAL_STUMP && GetUsedSkillMasterType(pkSk->dwVnum) < SKILL_GRAND_MASTER)) affact_flag = AFF_WAR_MENTAL_SWORD_STRIKE_WITH_FALL; } else { - if ((pkSk->dwVnum == SKILL_WAR_MENTAL_SWORD_STRIKE && GetUsedSkillMasterType(pkSk->dwVnum) < SKILL_MASTER)) + if ((pkSk->dwVnum == SKILL_WAR_MENTAL_STUMP && GetUsedSkillMasterType(pkSk->dwVnum) < SKILL_MASTER)) affact_flag = AFF_WAR_MENTAL_SWORD_STRIKE_WITH_FALL; } // END_OF_ADD_GRANDMASTER_SKILL diff --git a/src/game/src/char_state.cpp b/src/game/src/char_state.cpp index 8518fda..73a7d0e 100644 --- a/src/game/src/char_state.cpp +++ b/src/game/src/char_state.cpp @@ -197,7 +197,7 @@ namespace if (pkChr->IsDead()) return; - if (pkChr->IsAffectFlag(AFF_NINJA_BLADEFIGHT_DISGUISE) || + if (pkChr->IsAffectFlag(AFF_NINJA_BLADEFIGHT_STEALTH) || pkChr->IsAffectFlag(AFF_INVISIBILITY) || pkChr->IsAffectFlag(AFF_REVIVE_INVISIBLE)) return; diff --git a/src/game/src/cmd_general.cpp b/src/game/src/cmd_general.cpp index ead429a..65b1dbc 100644 --- a/src/game/src/cmd_general.cpp +++ b/src/game/src/cmd_general.cpp @@ -853,7 +853,7 @@ ACMD(do_skillup) case SKILL_7_C_ANTI_SURA_WEAPONRY_FINGER_STRIKE: case SKILL_7_D_ANTI_SHAMAN_DRAGON_SHOOTING_DRAGON: - case SKILL_8_A_ANTI_WAR_MENTAL_BASH: + case SKILL_8_A_ANTI_WAR_MENTAL_SPIRIT_STRIKE: case SKILL_8_B_ANTI_NINJA_ARCHERY_REPETITIVE_SHOT: case SKILL_8_C_ANTI_SURA_BLACKMAGIC_DARK_ORB: case SKILL_8_D_ANTI_SHAMAN_HEALING_SUMMON_LIGHTNING: diff --git a/src/game/src/guild.cpp b/src/game/src/guild.cpp index e17358b..5cd46cc 100644 --- a/src/game/src/guild.cpp +++ b/src/game/src/guild.cpp @@ -1273,8 +1273,8 @@ void CGuild::UseSkill(DWORD dwVnum, LPCHARACTER ch, DWORD pid) if (ch->IsAffectFlag(AFF_REVIVE_INVISIBLE)) ch->RemoveAffect(AFFECT_REVIVE_INVISIBLE); - if (ch->IsAffectFlag(AFF_NINJA_BLADEFIGHT_DISGUISE)) - ch->RemoveAffect(SKILL_NINJA_BLADEFIGHT_DISGUISE); + if (ch->IsAffectFlag(AFF_NINJA_BLADEFIGHT_STEALTH)) + ch->RemoveAffect(SKILL_NINJA_BLADEFIGHT_STEALTH); double k =1.0*m_data.abySkill[dwRealVnum]/pkSk->bMaxLevel; pkSk->kSPCostPoly.SetVar("k", k); diff --git a/src/game/src/input_main.cpp b/src/game/src/input_main.cpp index 2136cfe..e018a48 100644 --- a/src/game/src/input_main.cpp +++ b/src/game/src/input_main.cpp @@ -1704,7 +1704,7 @@ void CInputMain::Attack(LPCHARACTER ch, const BYTE header, const char* data) switch (type->type) { - case SKILL_WAR_MENTAL_AMBUSH: + case SKILL_WAR_MENTAL_SWORD_STRIKE: case SKILL_NINJA_BLADEFIGHT_POISONOUS_CLOUD: case SKILL_NINJA_ARCHERY_REPETITIVE_SHOT: case SKILL_NINJA_ARCHERY_ARROW_SHOWER: diff --git a/src/game/src/skill.h b/src/game/src/skill.h index 2b49c08..876f8ff 100644 --- a/src/game/src/skill.h +++ b/src/game/src/skill.h @@ -55,12 +55,12 @@ enum ESkillIndexes // ¹«»ç ±â°ø °è¿­ // A - SKILL_WAR_MENTAL_BASH = 16, // ±â°øÂü - SKILL_WAR_MENTAL_POUNDING, // °Ý»êŸ¿ì - SKILL_WAR_MENTAL_SWORD_STRIKE, // ´ëÁø°¢ + SKILL_WAR_MENTAL_SPIRIT_STRIKE = 16, // ±â°øÂü + SKILL_WAR_MENTAL_BASH, // °Ý»êŸ¿ì + SKILL_WAR_MENTAL_STUMP, // ´ëÁø°¢ // S SKILL_WAR_MENTAL_STRONG_BODY, // õ±ÙÃß - SKILL_WAR_MENTAL_AMBUSH, // °Ëdz + SKILL_WAR_MENTAL_SWORD_STRIKE, // °Ëdz // ÀÚ°´ ¾Ï»ì °è¿­ // A @@ -68,7 +68,7 @@ enum ESkillIndexes SKILL_NINJA_BLADEFIGHT_FAST_ATTACK, // ±Ã½Åź¿µ SKILL_NINJA_BLADEFIGHT_ROLLING_DAGGER, // Â÷·û»ì // S - SKILL_NINJA_BLADEFIGHT_DISGUISE, // ÀºÇü¹ý + SKILL_NINJA_BLADEFIGHT_STEALTH, // ÀºÇü¹ý SKILL_NINJA_BLADEFIGHT_POISONOUS_CLOUD, // »ê°øºÐ // ÀÚ°´ ±Ã¼ö °è¿­ @@ -109,7 +109,7 @@ enum ESkillIndexes //SKILL_BUDONG, // ºÎµ¿¹ÚºÎ SKILL_SHAMAN_DRAGON_BLESSING, // È£½Å SKILL_SHAMAN_DRAGON_REFLECT, // º¸È£ - SKILL_SHAMAN_DRAGON_DRAGONS_AID, // ±âõ´ë°ø + SKILL_SHAMAN_DRAGON_DRAGONS_STRENGTH, // ±âõ´ë°ø // ¹«´ç ³ú½Å // A @@ -129,7 +129,7 @@ enum ESkillIndexes SKILL_7_D_ANTI_SHAMAN_DRAGON_SHOOTING_DRAGON, // 8 - SKILL_8_A_ANTI_WAR_MENTAL_BASH, + SKILL_8_A_ANTI_WAR_MENTAL_SPIRIT_STRIKE, SKILL_8_B_ANTI_NINJA_ARCHERY_REPETITIVE_SHOT, SKILL_8_C_ANTI_SURA_BLACKMAGIC_DARK_ORB, SKILL_8_D_ANTI_SHAMAN_HEALING_SUMMON_LIGHTNING, diff --git a/src/game/src/trigger.cpp b/src/game/src/trigger.cpp index 4252457..2dce09f 100644 --- a/src/game/src/trigger.cpp +++ b/src/game/src/trigger.cpp @@ -95,7 +95,7 @@ class FuncFindMobVictim if (pkChr->IsDead()) return false; - if (pkChr->IsAffectFlag(AFF_NINJA_BLADEFIGHT_DISGUISE) || + if (pkChr->IsAffectFlag(AFF_NINJA_BLADEFIGHT_STEALTH) || pkChr->IsAffectFlag(AFF_INVISIBILITY) || pkChr->IsAffectFlag(AFF_REVIVE_INVISIBLE)) return false;