📄 skillformula.cpp
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : SkillFormula.cpp// Written by : excel96// Description : //////////////////////////////////////////////////////////////////////////////#include "SkillHandler.h"#include "Assert.h"#include "Vampire.h"#include "Monster.h"// 八拌凯#include "DoubleImpact.h"#include "TripleSlasher.h"#include "RainbowSlasher.h"#include "ThunderSpark.h"#include "DancingSword.h"#include "CrossCounter.h"#include "FlashSliding.h"#include "LightningHand.h"#include "SwordWave.h"#include "SnakeCombo.h"#include "WindDivider.h"#include "ThunderBolt.h"#include "Expansion.h"#include "MiracleShield.h"#include "ThunderFlash.h"#include "ThunderStorm.h"#include "MentalSword.h"#include "SharpShield.h"#include "WideLightning.h"#include "SwordRay.h"#include "HitConvert.h"// 档拌凯#include "SingleBlow.h"#include "SpiralSlay.h"#include "TripleBreak.h"#include "WildSmash.h"#include "GhostBlade.h"#include "PotentialExplosion.h"#include "ShadowWalk.h"#include "ChargingPower.h"#include "HurricaneCombo.h"#include "TornadoSever.h"#include "Earthquake.h"#include "Berserker.h"#include "MoonlightSever.h"#include "ShadowDancing.h"#include "Typhoon.h"#include "AirShield.h"#include "PowerOfLand.h"#include "MultiAmputate.h"#include "WildTyphoon.h"// 焙牢 拌凯#include "QuickFire.h"#include "DoubleShot.h"#include "TripleShot.h"#include "MultiShot.h"#include "HeadShot.h"#include "Piercing.h"#include "Sniping.h"#include "MindControl.h"//#include "DetectMine.h"#include "CreateBomb.h"#include "CreateMine.h"#include "InstallMine.h"#include "DisarmMine.h"#include "Revealer.h"#include "ObservingEye.h"#include "GunShotGuidance.h"#include "BulletOfLight.h"#include "Concealment.h"#include "UltimateBlow.h"// 牢忙 拌凯#include "CreateHolyWater.h"#include "Light.h"#include "DetectHidden.h"#include "AuraBall.h"#include "Bless.h"#include "ContinualLight.h"#include "Flare.h"#include "Purify.h"#include "AuraRing.h"#include "Striking.h"#include "DetectInvisibility.h"//#include "Identify.h"#include "AuraShield.h"//#include "Enchant.h"#include "Visible.h"#include "VigorDrop.h"#include "Sanctuary.h"#include "Reflection.h"#include "Hymn.h"#include "LightBall.h"#include "Rebuke.h"#include "SpiritGuard.h"#include "Requital.h"#include "Lightness.h"// 鳃傅 拌凯#include "CureLightWounds.h"#include "CurePoison.h"#include "ProtectionFromPoison.h"#include "CauseLightWounds.h"#include "CureSeriousWounds.h"#include "RemoveCurse.h"#include "ProtectionFromCurse.h"#include "CauseSeriousWounds.h"#include "CureCriticalWounds.h"#include "ProtectionFromAcid.h"#include "Sacrifice.h"#include "CauseCriticalWounds.h"#include "CureAll.h"#include "RegenerationSkill.h"#include "Resurrect.h"#include "EnergyDrop.h"#include "Activation.h"#include "HolyBlast.h"//#include "MassCure.h"//#include "MassHeal.h"#include "HolyArrow.h"#include "Regeneration.h"#include "TurnUndead.h"#include "DenialMagic.h"#include "Illendue.h"// 轨橇 拌凯#include "PoisonousHands.h"#include "GreenPoison.h"#include "YellowPoison.h"#include "DarkBluePoison.h"#include "GreenStalker.h"#include "AcidTouch.h"#include "AcidBolt.h"#include "AcidBall.h"#include "AcidSwamp.h"#include "Paralyze.h"#include "Doom.h"#include "Seduction.h"//#include "Blind.h"#include "Death.h"#include "Mephisto.h"#include "BloodyNail.h"#include "BloodyKnife.h"#include "BloodyBall.h"#include "BloodyWave.h"#include "BloodyBreaker.h"#include "BloodyMasterWave.h"#include "BloodyWarp.h"//#include "BloodyWall.h"#include "BloodySpear.h"#include "BloodyWall.h"#include "BloodySnake.h"#include "RapidGliding.h"#include "Hide.h"#include "Darkness.h"#include "Invisibility.h"#include "TransformToWolf.h"#include "TransformToBat.h"//#include "SummonWolf.h"#include "SummonCasket.h"#include "OpenCasket.h"//#include "RaisingDead.h"//#include "SummonServant.h"#include "BloodyMarker.h"#include "BloodyTunnel.h"#include "PoisonStrike.h"#include "AcidStrike.h"#include "BloodyStrike.h"#include "PoisonStorm.h"#include "AcidStorm.h"#include "BloodyStorm.h"#include "Extreme.h"#include "Transfusion.h"#include "HandsOfWisdom.h"#include "Armageddon.h"// 扁鸥#include "CriticalGround.h"#include "SummonMonsters.h"#include "Restore.h"#include "Peace.h"#include "GroundAttack.h"#include "MeteorStrike.h"#include "Hallucination.h"#include "DuplicateSelf.h"#include "SoulChain.h"// 己瘤胶懦#include "MagicElusion.h"#include "PoisonMesh.h"#include "IllusionOfAvenge.h"#include "WillOfLife.h"// 酒快胶磐令 胶懦#include "Flourish.h"#include "Evade.h"#include "SharpRound.h"#include "BackStab.h"#include "Blunting.h"#include "GammaChop.h"#include "CrossGuard.h"#include "KasasArrow.h"#include "HandsOfFire.h"#include "Prominence.h"#include "RingOfFlare.h"#include "BlazeBolt.h"#include "IceField.h"#include "WaterBarrier.h"#include "NymphRecovery.h"#include "Liberty.h"#include "Tendril.h"#include "StoneAuger.h"#include "EarthsTeeth.h"#include "GnomesWhisper.h"#include "HandsOfNizie.h"#include "RefusalEther.h"#include "EmissionWater.h"#include "BeatHead.h"#include "DivineSpirits.h"#include "BlitzSliding.h"#include "JabbingVein.h"#include "GreatHeal.h"#include "DivineGuidance.h"#include "BlazeWalk.h"#include "BloodyZenith.h"#include "Rediance.h"#include "LarSlash.h"#include "Trident.h"#include "HeartCatalyst.h"#include "ProtectionFromBlood.h"#include "MoleShot.h"#include "Eternity.h"#include "InstallTrap.h"#include "HolyArmor.h"#include "MercyGround.h"#include "CreateHolyPotion.h"#include "TransformToWerwolf.h"#include "GrayDarkness.h"#include "StoneSkin.h"#include "TalonOfCrow.h"#include "Howl.h"#include "AcidEruption.h"#include "Teleport.h"#include "FirePiercing.h"#include "SoulRebirth.h"#include "IceLance.h"#include "ExplosionWater.h"#include "FrozenArmor.h"#include "ReactiveArmor.h"#include "MagnumSpear.h"#include "HellFire.h"#include "GroundBless.h"#include "SharpChakram.h"#include "DestructionSpear.h"#include "ShiftBreak.h"#include "FatalSnick.h"#include "ChargingAttack.h"#include "DuckingWallop.h"#include "DistanceBlitz.h"#include "SummonGroundElemental.h"#include "SummonFireElemental.h"#include "SummonWaterElemental.h"#include "MeteorStorm.h"const int PartyEffectBoost[7] = { 100, // 0 100, // 1 120, // 2 135, // 3 140, // 4 145, // 5 150 // 6};const int PartyDurationBoost[7] = { 100, // 0 100, // 1 130, // 2 155, // 3 175, // 4 190, // 5 200 // 6};//////////////////////////////////////////////////////////////////////////////// 八 拌凯//////////////////////////////////////////////////////////////////////////////void DoubleImpact::computeOutput(const SkillInput& input, SkillOutput& output) { output.Damage = 1 + (input.STR/20) + input.SkillLevel/20; output.Delay = 8; // 1檬 //output.Damage = 2 + input.SkillLevel/33; //output.Delay = 10; // 1檬}void TripleSlasher::computeOutput(const SkillInput& input, SkillOutput& output) {// output.Damage = 2 + (input.STR/20) + (input.SkillLevel/15); output.Damage = 3 + (input.STR/20) + (input.SkillLevel/15); output.Delay = 8; // 0.7檬 //output.Damage = 3 + input.SkillLevel/33; //output.Delay = 7; // 0.7檬}void RainbowSlasher::computeOutput(const SkillInput& input, SkillOutput& output) { output.Damage = 4 + input.STR/15 + input.SkillLevel/10; output.Delay = 8; // 0.8檬 //output.Damage = 7 + input.SkillLevel/33; //output.Delay = 8; // 0.8檬}void ThunderSpark::computeOutput(const SkillInput& input, SkillOutput& output) { output.Damage = 3 + input.STR/20 + input.SkillLevel/10; output.Delay = 7; // 0.7檬 //output.Damage = 5 + input.SkillLevel/33; //output.Delay = 7; // 0.7檬}void DancingSword::computeOutput(const SkillInput& input, SkillOutput& output) { output.Damage = 1 + (input.DEX/10) + (input.SkillLevel/10);// output.Duration = (10 + input.STR/10 + input.SkillLevel/2) * 10; output.Duration = (30 + input.STR/10 + input.SkillLevel/2) * 10; //output.Delay = (5 - input.SkillLevel/33) * 10; // 5->2檬 output.Delay = output.Duration; // Delay 客 Duration 捞 鞍促. by bezz 2003.3.5 //output.Damage = 5 + input.SkillLevel/10; //output.Duration = (30 + input.SkillLevel/4) * 10; //output.Delay = (5 - input.SkillLevel/33) * 10; // 5->2檬}void CrossCounter::computeOutput(const SkillInput& input, SkillOutput& output) { output.Duration = (10 + input.SkillLevel/2) * 10; //output.Delay = max(5 - input.SkillLevel/20, 2) * 10; // 5->2檬 output.Delay = output.Duration; // Delay 客 Duration 捞 鞍促. by bezz 2003.3.5 //output.Duration = (30 + input.SkillLevel/4) * 10; //output.Delay = max(5 - input.SkillLevel/20, 2) * 10; // 5->2檬}void FlashSliding::computeOutput(const SkillInput& input, SkillOutput& output) { output.Delay = max(3 - input.SkillLevel/50, 1) * 10; // 3->1檬 output.Duration = 3 - input.SkillLevel/50; //output.Delay = (3 - input.SkillLevel/50) * 10; // 3->1檬}void LightningHand::computeOutput(const SkillInput& input, SkillOutput& output) { output.Damage = input.STR/10 + input.SkillLevel/10; // 努扼捞攫飘客狼 悼扁拳 巩力肺 掉饭捞啊 绝芭唱 炼陛 歹 陋酒具 茄促. output.Delay = 4; // 0.2檬 //output.Damage = 7 + input.SkillLevel/20; //output.Delay = 2; // 0.2檬}void SwordWave::computeOutput(const SkillInput& input, SkillOutput& output) {// output.Damage = 5 + input.SkillLevel/33; output.Damage = 15 + input.SkillLevel/20; output.Delay = 4; // 1檬 //output.Damage = 5 + input.SkillLevel/33; //output.Delay = 10; // 1檬}void SnakeCombo::computeOutput(const SkillInput& input, SkillOutput& output) { // by sigi. 2002.12.3 output.Damage = 5 + input.STR/12 + input.SkillLevel/8; output.Delay = 10; // 1檬 //output.Damage = 7 + input.SkillLevel/10;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -