48 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
 | ||
| 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)
 | ||
| {
 | ||
| 
 | ||
| }
 | ||
|  |