Sqr/character/atmage/elementalrain/po_elementalrainbigballexp.nut

48 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function setCustomData_po_ATElementalRainBigBallExp(obj, receiveData)
{
if(!obj)
return;
// 葆虽虞 ?嫦暧 奢问溘 掸?
local attackBonusRate = receiveData.readDword();
local sizeRate = receiveData.readWord();
local attackInfo = sq_GetCurrentAttackInfo(obj);
sq_SetCurrentAttackBonusRate(attackInfo, attackBonusRate);
local mage = obj.getTopCharacter();
if (mage)
attackInfo.setElement(mage.getThrowElement());
// ?贼霞翕
if (obj.isMyControlObject())
{
sq_SetMyShake(obj, 6, 800);
local flashScreen = sq_flashScreen(obj, 80, 80, 80, 120, sq_RGB(0,0,0), GRAPHICEFFECT_NONE, ENUM_DRAWLAYER_BOTTOM);
sq_addFlashScreen(flashScreen, 0, 80, 0, 120, sq_RGB(255,255,255), GRAPHICEFFECT_NONE, ENUM_DRAWLAYER_BOTTOM);
sq_addFlashScreen(flashScreen, 0, 80, 120, 200, sq_RGB(0,0,0), GRAPHICEFFECT_NONE, ENUM_DRAWLAYER_BOTTOM);
}
// 嬴桧蛊娄 翱翕肾朝 晦栋
// 葆虽虞 ?嫦暧 饵桧锷蒂 渗唳? 热 毡朝 晦栋歜
local animation = sq_GetCurrentAnimation(obj);
if (!animation) return;
local size = sizeRate.tofloat() / 100.0;
animation.setImageRateFromOriginal(size, size);
animation.setAutoLayerWorkAnimationAddSizeRate(size);
sq_SetAttackBoundingBoxSizeRate(animation, size, size, size);
}
function onAttack_po_ATElementalRainBigBallExp(obj, damager, boundingBox, isStuck)
{
if (!obj)
return 0;
return 0;
}
function procAppend_po_ATElementalRainBigBallExp(obj)
{
}