茶服加密更新

This commit is contained in:
Lenheart 2025-12-23 14:19:04 +08:00
parent 326149ba8d
commit 3afd68ea59
4 changed files with 15 additions and 8 deletions

View File

@ -100,7 +100,7 @@ function illusionBomb_bykk(obj)
function onSetState_IllusionBomb(obj, state, datas, isResetTimer) function onSetState_IllusionBomb_old(obj, state, datas, isResetTimer)
{ {
if(!obj) return; if(!obj) return;
local subState = obj.sq_GetVectorData(datas, 0); local subState = obj.sq_GetVectorData(datas, 0);

View File

@ -1650,11 +1650,13 @@ function onSetState_BlackMantle_bykk(obj, state, datas, isResetTimer)
// //
local Ani = obj.sq_GetThrowChargeAni(0); local Ani = obj.sq_GetThrowChargeAni(0);
obj.setCurrentAnimation(Ani); obj.setCurrentAnimation(Ani);
obj.sq_SetStaticSpeedInfo(SPEED_TYPE_CAST_SPEED, SPEED_TYPE_CAST_SPEED,SPEED_VALUE_DEFAULT, SPEED_VALUE_DEFAULT, 1.0, 1.0);
break; break;
case 11: case 11:
// obj.sq_PlaySound("WZ_ACID_CLOUD"); // obj.sq_PlaySound("WZ_ACID_CLOUD");
local Ani = obj.sq_GetThrowShootAni(0); local Ani = obj.sq_GetThrowShootAni(0);
obj.setCurrentAnimation(Ani); obj.setCurrentAnimation(Ani);
obj.sq_SetStaticSpeedInfo(SPEED_TYPE_CAST_SPEED, SPEED_TYPE_CAST_SPEED,SPEED_VALUE_DEFAULT, SPEED_VALUE_DEFAULT, 1.0, 1.0);
//local AddAppendage = CNSquirrelAppendage.sq_GetAppendage(obj, "ui/ap/ap_character.nut"); //local AddAppendage = CNSquirrelAppendage.sq_GetAppendage(obj, "ui/ap/ap_character.nut");
//if(AddAppendage) print(1); //if(AddAppendage) print(1);

View File

@ -465,7 +465,7 @@ function setCustomData_po_summoners(obj, receiveData)
case 1: case 1:
//?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭 //?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭
local totalDamage = receiveData.readDword(); local totalDamage = receiveData.readDword();
sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 26)); sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 27));
sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage); sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage);
//?嚙踝蕭ANI //?嚙踝蕭ANI
local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/attack.ani"); local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/attack.ani");
@ -474,7 +474,7 @@ function setCustomData_po_summoners(obj, receiveData)
case 2: case 2:
//?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭 //?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭
local totalDamage = receiveData.readDword(); local totalDamage = receiveData.readDword();
sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 29)); sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 30));
sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage); sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage);
//?嚙踝蕭ANI //?嚙踝蕭ANI
local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/grandwave1.ani"); local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/grandwave1.ani");
@ -495,7 +495,7 @@ function setCustomData_po_summoners(obj, receiveData)
case 5: case 5:
//?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭 //?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭
local totalDamage = receiveData.readDword(); local totalDamage = receiveData.readDword();
sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 30)); sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 31));
sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage); sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage);
//?嚙踝蕭ANI //?嚙踝蕭ANI
local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/dummy2.ani"); local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/dummy2.ani");
@ -543,14 +543,14 @@ function setCustomData_po_summoners(obj, receiveData)
//?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭 //?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭
local eclipsehive_bonus = sqrChr.getVar("eclipsehive_bonus").getInt(10).tofloat() / 100.0; local eclipsehive_bonus = sqrChr.getVar("eclipsehive_bonus").getInt(10).tofloat() / 100.0;
local totalDamage = sq_GetBonusRateWithPassive(sqrChr, 47, 47, 11, eclipsehive_bonus) + 100; local totalDamage = sq_GetBonusRateWithPassive(sqrChr, 47, 47, 11, eclipsehive_bonus) + 100;
sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 28)); sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 29));
sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage); sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage);
obj.addSetStatePacket(20, null, STATE_PRIORITY_AUTO, false, ""); obj.addSetStatePacket(20, null, STATE_PRIORITY_AUTO, false, "");
break; break;
case 51: case 51:
//?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭 //?嚙踝蕭嚙踝蕭嚙踝蕭嚙踝蕭
local totalDamage = receiveData.readDword(); local totalDamage = receiveData.readDword();
sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 30)); sq_SetCurrentAttackInfo(obj, sq_GetCustomAttackInfo(obj, 31));
sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage); sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(obj), totalDamage);
//?嚙踝蕭ANI //?嚙踝蕭ANI
local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/newlaser/uhdlaserbombmagicsquare.ani"); local ani = sq_CreateAnimation("","passiveobject/madeby_k_k/animation/spikeking/newlaser/uhdlaserbombmagicsquare.ani");

View File

@ -891,6 +891,9 @@ function onSourceKeyFrameFlag_appendage_spirit_bykk(appendage,flagIndex)
} }
} }
local skillLevel = sq_GetSkillLevel(sqrChr, 151);
eclipsehive_bonus = eclipsehive_bonus * (1 + skillLevel * 0.1);
switch(flagIndex){ switch(flagIndex){
case 101://嚙踝蕭1 case 101://嚙踝蕭1
local pAni = parentObj.getCurrentAnimation(); local pAni = parentObj.getCurrentAnimation();
@ -2750,6 +2753,7 @@ function summoners_kuk_setbonusRate(obj)
print("bonusRate2 = "+bonusRate); print("bonusRate2 = "+bonusRate);
if(sq_GetSkillLevel(obj, SKILL_BYKK_COMMUNION) > 0) bonusRate = bonusRate * (1000 + sq_GetLevelData(obj, SKILL_BYKK_COMMUNION, 0, sq_GetSkillLevel(obj, SKILL_BYKK_COMMUNION))) / 1000; if(sq_GetSkillLevel(obj, SKILL_BYKK_COMMUNION) > 0) bonusRate = bonusRate * (1000 + sq_GetLevelData(obj, SKILL_BYKK_COMMUNION, 0, sq_GetSkillLevel(obj, SKILL_BYKK_COMMUNION))) / 1000;
print("bonusRate3 = "+bonusRate); print("bonusRate3 = "+bonusRate);
if(CNSquirrelAppendage.sq_IsAppendAppendage(obj, "character/mage/k_k_made/appendage/aptosummoner/ap_masterreckless.nut")) bonusRate = bonusRate * (1000 + sq_GetLevelData(obj, 81, 5, sq_GetSkillLevel(obj, 81))) / 1000;
//if(obj.getVar("summoners_bonusRate").getBool(0)) bonusRate = bonusRate + sq_GetLevelData(obj, 81, 5, sq_GetSkillLevel(obj, 81)); //if(obj.getVar("summoners_bonusRate").getBool(0)) bonusRate = bonusRate + sq_GetLevelData(obj, 81, 5, sq_GetSkillLevel(obj, 81));
// print("bonusRate4 = "+bonusRate); // print("bonusRate4 = "+bonusRate);
if(obj.getVar("echeverra_buff").getBool(0)){ if(obj.getVar("echeverra_buff").getBool(0)){
@ -3083,8 +3087,9 @@ function onAfterSetState_Throw_summoner_bykk(obj, state, datas, isResetTimer)
if (obj.getThrowState() == 1){ if (obj.getThrowState() == 1){
if(CNSquirrelAppendage.sq_IsAppendAppendage(obj, "character/mage/k_k_made/appendage/aptosummoner/ap_masterreckless.nut")) CNSquirrelAppendage.sq_RemoveAppendage(obj, "character/mage/k_k_made/appendage/aptosummoner/ap_masterreckless.nut"); if(CNSquirrelAppendage.sq_IsAppendAppendage(obj, "character/mage/k_k_made/appendage/aptosummoner/ap_masterreckless.nut")) CNSquirrelAppendage.sq_RemoveAppendage(obj, "character/mage/k_k_made/appendage/aptosummoner/ap_masterreckless.nut");
local AddAppendage = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, 81, false, "character/mage/k_k_made/appendage/aptosummoner/ap_masterreckless.nut", true); local AddAppendage = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, 81, false, "character/mage/k_k_made/appendage/aptosummoner/ap_masterreckless.nut", true);
local rad = sq_GetLevelData(obj, 81, 5, sq_GetSkillLevel(obj, 81)) / 10; //local rad = sq_GetLevelData(obj, 81, 5, sq_GetSkillLevel(obj, 81)) / 10;
obj.getVar("apGetSetbyKK").setInt(0, rad); //obj.getVar("apGetSetbyKK").setInt(0, rad);
summoners_kuk_setbonusRate(obj);
} }
} }
} }