67 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			67 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
|  | /* | ||
|  | 文件名:procAppend_All.nut | ||
|  | 路径:procAppend/procAppend_All.nut | ||
|  | 创建日期:2022-09-04	20:15 | ||
|  | 文件用途:全职业Proc循环函数 | ||
|  | */ | ||
|  | 
 | ||
|  | 
 | ||
|  | dofile("sqr/procAppend/procAppend_ATFighter.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_ATGunner.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_ATMage.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_CreatorMage.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_DemonicSwordman.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_Fighter.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_Gunner.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_Mage.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_Priest.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_Swordman.nut"); | ||
|  | dofile("sqr/procAppend/procAppend_Thief.nut"); | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | function procAppend_All(obj) { | ||
|  |     //TOW_CharacterAppendage(obj); | ||
|  | 
 | ||
|  | 
 | ||
|  |     local RootTab = getroottable(); | ||
|  | 
 | ||
|  |     //如果开启了不震动设置 将取消震动 | ||
|  |     if (RootTab.rawin("S_GameShakeSB") && RootTab["S_GameShakeSB"] == true) { | ||
|  |         sq_SetMyShake(obj, 0, 0); | ||
|  |     } | ||
|  | 
 | ||
|  | 
 | ||
|  |     if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/currency.nut")) { | ||
|  |         CNSquirrelAppendage.sq_AppendAppendage(obj, obj, 174, false, "appendage/currency.nut", true); | ||
|  |     } | ||
|  | 
 | ||
|  |     //怪物血条 | ||
|  |     MonsterBlood_ApAdd(obj); | ||
|  | 
 | ||
|  |     //手搓装备限定 | ||
|  |     TraversingSkillSlot(obj); | ||
|  | } | ||
|  | 
 | ||
|  | 
 | ||
|  | //遍历技能栏获取空位 | ||
|  | function TraversingSkillSlot(obj) { | ||
|  |     local Index = L_sq_GetCharacterAttribute(0x1C, 1); | ||
|  |     //巴鲁姆克之剑  漫游之王  耀光女王的银妆刀 | ||
|  |     if (Index == 101040148 || Index == 104000154 || Index == 109000106) { | ||
|  |         local skillmgr = obj.getSkillManager(); | ||
|  |         local SkillSlot = obj.getVar("SkillSlot"); | ||
|  |         SkillSlot.clear_vector; | ||
|  | 
 | ||
|  |         local up = 0; | ||
|  |         for (local i = 1; i < 255; i++) { | ||
|  |             local id = skillmgr.getQuickSlotNumber(i); | ||
|  |             if ((id >= 0 && id <= 6)) { | ||
|  |                 up += 1; | ||
|  |             } else if ((id >= 198 && id <= 203)) { | ||
|  |                 up += 1; | ||
|  |             } | ||
|  |         } | ||
|  |         SkillSlot.setInt(0, up); | ||
|  |     } | ||
|  | } |