茶服加密更新
This commit is contained in:
@@ -539,8 +539,8 @@ function onSetState_Destroyer_bykk(obj, state, datas, isResetTimer)
|
||||
break;
|
||||
}
|
||||
if(subState != 0){
|
||||
local speedRate = 1.0;
|
||||
if(sq_GetIntData(obj, SKILL_DARKEMPLER_DESTROYER, 12) > 0 || DESTROYER_STONE > 0) speedRate = 2.0;
|
||||
local speedRate = 1.5;
|
||||
if(sq_GetIntData(obj, SKILL_DARKEMPLER_DESTROYER, 12) > 0 || DESTROYER_STONE > 0) speedRate = 2.5;
|
||||
obj.sq_SetStaticSpeedInfo(SPEED_TYPE_ATTACK_SPEED, SPEED_TYPE_ATTACK_SPEED,SPEED_VALUE_DEFAULT, SPEED_VALUE_DEFAULT, speedRate, speedRate);
|
||||
}
|
||||
else{
|
||||
@@ -1845,10 +1845,15 @@ function onSetState_Punishment_bykk(obj, state, datas, isResetTimer)
|
||||
case 2:
|
||||
obj.removeAllTimeEvent();
|
||||
obj.sq_SetCurrentAnimation(ANIMATION_DARKEMPLER_PUNISHMENT_FINISH_MOTION_BODY1);
|
||||
obj.sq_SetStaticSpeedInfo(SPEED_TYPE_ATTACK_SPEED, SPEED_TYPE_ATTACK_SPEED, SPEED_VALUE_DEFAULT, SPEED_VALUE_DEFAULT, 1.0, 1.0);
|
||||
local currentAni = obj.getCurrentAnimation();
|
||||
local speedRate = 6000 / currentAni.getDelaySum(0, 0);
|
||||
obj.getVar("punishmentSet").setInt(0, speedRate);
|
||||
obj.sq_PlaySound("SW_PUNISHMENT_FIN");
|
||||
local pooledObj = createOnlyDrawObject_AtSwordMan_bykk(obj, "character/swordman/effect/animation/atpunishment/finish/atpunishment_finish_bottom1.ani",true,obj.getDirection(), sq_GetDistancePos(sq_GetXPos(obj), obj.getDirection(), 350),sq_GetYPos(obj), 100, ENUM_DRAWLAYER_BOTTOM);
|
||||
local pAni = pooledObj.getCurrentAnimation();
|
||||
pAni.setImageRateFromOriginal(3.0, 1.2);
|
||||
pAni.setSpeedRate(speedRate.tofloat());
|
||||
local currentAni = obj.getCurrentAnimation();
|
||||
local delaySum = currentAni.getDelaySum(0,5);
|
||||
obj.setTimeEvent(1, delaySum, 1, false);
|
||||
@@ -1857,7 +1862,7 @@ function onSetState_Punishment_bykk(obj, state, datas, isResetTimer)
|
||||
local totalDamage = sq_GetLevelData(obj, SKILL_DARKEMPLER_PUNISHMENT, 1, skill_level);
|
||||
sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 116));
|
||||
sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage);
|
||||
obj.setTimeEvent(2, 1800, 1, false);
|
||||
obj.setTimeEvent(2, 180000 / speedRate, 1, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1870,7 +1875,10 @@ function onTimeEvent_Punishment_bykk(obj, timeEventIndex, timeEventCount)
|
||||
//sq_flashScreen(obj, 200, 100, 100, 255, sq_RGB(255,255,255), GRAPHICEFFECT_SPACE_DISTORT, ENUM_DRAWLAYER_CONTACT);
|
||||
break;
|
||||
case 1:
|
||||
sq_AddDrawOnlyAniFromParent(obj, "character/swordman/effect/animation/atpunishment/finish/atpunishment_finish_top_eff2_dodge.ani", 350, 1, 100);
|
||||
local speedRate = obj.getVar("punishmentSet").getInt(0);
|
||||
local pooledObj = sq_AddDrawOnlyAniFromParent(obj, "character/swordman/effect/animation/atpunishment/finish/atpunishment_finish_top_eff2_dodge.ani", 350, 1, 100);
|
||||
local pAni = pooledObj.getCurrentAnimation();
|
||||
pAni.setSpeedRate(speedRate.tofloat());
|
||||
break;
|
||||
case 2:
|
||||
attack_Punishment_bykk(obj);
|
||||
|
||||
Reference in New Issue
Block a user