⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 typhoon.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : Typhoon.cpp// Written by  : elca@ewestsoft.com// Description ://////////////////////////////////////////////////////////////////////////////#include "Typhoon.h"#include "SimpleMeleeSkill.h"#include "EffectTyphoon.h"//////////////////////////////////////////////////////////////////////////////// 浇饭捞绢 坷宏璃飘 勤甸矾//////////////////////////////////////////////////////////////////////////////void Typhoon::execute(Slayer * pSlayer, ObjectID_t TargetObjectID, SkillSlot * pSkillSlot, CEffectID_t CEffectID)	throw(Error){	__BEGIN_TRY	//cout << "TID[" << Thread::self() << "]" << getSkillHandlerName() << " Begin" << endl;	SkillInput input(pSlayer, pSkillSlot);	SkillOutput output;	computeOutput(input, output);	SIMPLE_SKILL_INPUT param;	param.SkillType     = getSkillType();	param.SkillDamage   = output.Damage;	param.Delay         = output.Delay;	param.ItemClass     = Item::ITEM_CLASS_BLADE;	param.STRMultiplier = 8;	param.DEXMultiplier = 1;	param.INTMultiplier = 1;	param.bMagicHitRoll = false;	param.bMagicDamage  = false;	param.bAdd          = true;	SIMPLE_SKILL_OUTPUT result;	//cout << "Typhoon damage = " << output.Damage << endl;	g_SimpleMeleeSkill.execute(pSlayer, TargetObjectID, pSkillSlot, param, result);	if (result.bSuccess)	{		//cout << "Typhoon Success" << endl;		Zone* pZone = pSlayer->getZone();		Assert(pZone!=NULL);		Creature* pCreature = pZone->getCreature( TargetObjectID );		if (pCreature!=NULL)		{			// 阁胶磐牢 版快父 delay甫 眠啊茄促.			// player甸篮 client俊辑 贸府窍霸 登绢乐促.			if (pCreature->isMonster())			{				Monster* pMonster = dynamic_cast<Monster*>(pCreature);				// delay汲沥 ( + 1檬 )				if (!pMonster->isMaster()#ifdef __UNDERWORLD__						&& !pMonster->isUnderworld() && pMonster->getMonsterType() != 599#endif				)				{					Timeval delay;					delay.tv_sec  = 1;					delay.tv_usec = 0;//500000;					pMonster->addAccuDelay(delay);				}			}		}	}		// 惑措俊霸 单固瘤甫 霖 促澜 捞棋飘甫 嘿咯霖促.	//cout << "TID[" << Thread::self() << "]" << getSkillHandlerName() << " End" << endl;	__END_CATCH}Typhoon g_Typhoon;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -