;===========================================================================
; 忢帪娔帇僗僥乕僩乮亅俀乯
;===========================================================================
;---------------------------------------------------------------------------
; 捠忢偺怘傜偄忬懺乮Statedef 5000乣5199娫乯偱傕丄
; 憡庤偵乮乽P2StateNo乿傗乽TargetState乿摍偱乯惂屼傪扗傢傟偰傕丄
; 忢偵搊榐偟偨僗僥乕僩僐儞僩儘乕儔偑桳岠偵側傝傑偡丅
; 僒僽僔僗僥儉摍傪惂屼偡傞帪偵廳曮偡傞偱偟傚偆丅
;---------------------------------------------------------------------------

[Statedef -2]

[State -2, 曄悢];斅搳偘梡
type = VarSet
trigger1 = (StateNo != 1300)
var(5) = 0

;-----------------------------------
;偙偙偼乽僷儚乕棴傔乿偺僗僥乕僩偱敪惗偝偣偨乽Explod乿偺僄僼僃僋僩夋憸傪
;摿掕偺忦審偑桳岠偵側傟偽徚偡丄偲偄偆張棟傪偟偰偄傑偡丅

[State -2, 僄僼僃僋僩傪徚偡];僷儚乕棴傔僗僥乕僩梡
type = RemoveExplod
triggerall = NumExplod(130) > 0
                          ;仾偼俬俢僫儞僶乕乽130乿偺Explod偺夋柺拞偺悢偑0傛傝傕懡偄丄
                          ;偮傑傝侾枃埲忋昞帵偝傟偰偄傞帪
trigger1 = StateNo != 700 ;僗僥乕僩偑俈侽侽乮僷儚乕棴傔乯埲奜偺帪
trigger2 = MoveType != I  ;MoveType偑乽I乮壗傕偟偰側偄乯乿埲奜偺帪
ID = 130                  ;徚偡Explod偺摿掕偺俬俢僫儞僶乕傪巜掕

;-----------------------------------
[State -2, 僋儕僢僾儃乕僪]
type = DisplayToClipboard
trigger1 = 1
text = "Cancel=%d, Throw=%d, Button=%d, Body-Distance X=%d,Y=%d \n"
params = var(1),var(2),var(5),floor(P2BodyDist X),floor(P2BodyDist Y)

[State -2, 僋儕僢僾儃乕僪乮捛壛愱梡乯]
type = AppendToClipboard
trigger1 = 1
text = "Position X=%d,Y=%d, Velocity X=%f,Y=%f, Hit=%d \n"
params = floor(Pos X),floor(Pos Y),(Vel X),(Vel Y),(MoveHit)


[State -2, 庛]
type = VarRandom
trigger1 = movehit
v = 10
range = 6190,6199
IgnoreHitPause = 1

[State -2, 拞]
type = VarRandom
trigger1 = 1
v = 11
range = 6200,6209
IgnoreHitPause = 1

[State -2, 嫮]
type = VarRandom
trigger1 = 1
v = 12
range = 6210,6219
IgnoreHitPause = 1

[state 1231241]
type=lifeadd
;trigger1=palno >=7
trigger1=movehit
value=enemy,GetHitVar(damage)*0.1*ceil(palno/3);value=-enemy,GetHitVar(damage)*0.25是扣血，0.1表示扣掉造成伤害的10%
absolute=1
ignorehitpause=1

[State 0, AttackMulSet]
type = AttackMulSet
trigger1 = palno = 12
value = 1.5
;ignorehitpause = 
;persistent = 


[State 0, DefenceMulSet]
type = DefenceMulSet
trigger1 = palno = 12
value = 0.5
;ignorehitpause = 
;persistent = 
