📄 hitroll.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : HitRoll.h// Written by : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __HITROLL_H__#define __HITROLL_H__#include "ModifyInfo.h"//////////////////////////////////////////////////////////////////////////////// forward declaration//////////////////////////////////////////////////////////////////////////////class Creature;class Slayer;class Vampire;class Ousters;class Monster;class SkillInfo;class SkillSlot;class VampireSkillSlot;class OustersSkillSlot;//////////////////////////////////////////////////////////////////////////////// class HitRoll// 阿辆 疙吝奔覆 窃荐甫 窍唱狼 匙烙胶其捞胶肺 弓扁 困秦 父甸绢柳 努贰胶捞促.//////////////////////////////////////////////////////////////////////////////class HitRoll{public: // 老馆 傍拜 疙吝奔覆 窃荐 static bool isSuccess(Creature* pAttacker, Creature* pDefender, int ToHitBonus = 0); static bool isSuccess(ToHit_t ToHit, Creature* pDefender, int ToHitBonus = 0); // 浇饭捞绢侩 付过 疙吝奔覆 窃荐 static bool isSuccessMagic(Slayer* pSlayer, SkillInfo* pSkillInfo, SkillSlot* pSkillSlot); // 轨颇捞绢侩 付过 疙吝奔覆 窃荐 static bool isSuccessMagic(Vampire* pVampire, SkillInfo* pSkillInfo, VampireSkillSlot* pVampireSkillSlot, int BonusPoint = 0); // 酒快胶磐胶侩 付过 疙吝奔覆 窃荐 static bool isSuccessMagic(Ousters* pOusters, SkillInfo* pSkillInfo, OustersSkillSlot* pOustersSkillSlot, int BonusPoint = 0); // 阁胶磐侩 付过 疙吝奔覆 窃荐 static bool isSuccessMagic(Monster* pMonster, SkillInfo* pSkillInfo); // 轨颇捞绢 棺 阁胶磐侩 软趋 疙吝奔覆 窃荐 static bool isSuccessBloodDrain(Creature* pAttacker, Creature* pDefender, int multiplier=3); // 历林 拌凯 付过 疙吝奔覆 窃荐 static bool isSuccessCurse(int MagicLevel, Resist_t resist); static bool isSuccessVampireCurse(int MagicLevel, Resist_t resist); // CurePoison 疙吝奔覆 窃荐 static bool isSuccessCurePoison(int Base, int SkillLevel, int Difficulty, int MagicLevel, int MinRatio = 0); // Flare 疙吝奔覆 窃荐 static bool isSuccessFlare(Creature* pTargetCreature, int SkillLevel); // RemoveCurse 疙吝奔覆 窃荐 static bool isSuccessRemoveCurse(int Base, int SkillLevel, int Difficulty, int MagicLevel, int MinRatio = 0); // Rebuke 疙吝奔覆 窃荐 static bool isSuccessRebuke(Slayer* pSlayer, SkillSlot* pSkillSlot, Creature* pDefender); // Magic Elusion 疙吝奔覆 窃荐 static bool isSuccessMagicElusion(Slayer* pSlayer); // Poison Mesh 疙吝奔覆 窃荐 static bool isSuccessPoisonMesh(Vampire* pVampire); // Illusion Of Avenge 疙吝奔覆 窃荐 static bool isSuccessIllusionOfAvenge(Slayer *pSlayer); // Will Of Life 疙吝奔覆 窃荐 static bool isSuccessWillOfLife(Vampire* pVampire); // 农府萍拿 洒飘 费阑 荐青茄促. static bool isCriticalHit(Creature* pCreature, int CriticalBonus=0); // 浇饭捞绢 伎橇 胶懦牢啊甫 眉农窍绰 窃荐 static bool isSlayerSelfSkill( SkillType_t skillType ); static bool isOustersSelfSkill( SkillType_t skillType ); // 且风 己傍伏 static bool isSuccessHallucination( Vampire* pAttacker, Creature* pTarget ); // 归胶徘 己傍伏 static bool isSuccessBackStab( Ousters* pAttacker );};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -