1
This commit is contained in:
@@ -226,6 +226,13 @@ func (our *Input) SetOPP(t *Input) {
|
||||
}
|
||||
func (our *Input) RecoverEffect() {
|
||||
//println("恢复效果",our.UserID)
|
||||
fmt.Printf("[RecoverEffect] input=%p effects=%d cache=%d lost=%d paralysis=%v fear=%v sleep=%v tired=%v petrified=%v\n",
|
||||
our, len(our.Effects), len(our.EffectCache), len(our.EffectLost),
|
||||
our.StatEffect_Exist(info.PetStatus.Paralysis),
|
||||
our.StatEffect_Exist(info.PetStatus.Fear),
|
||||
our.StatEffect_Exist(info.PetStatus.Sleep),
|
||||
our.StatEffect_Exist(info.PetStatus.Tired),
|
||||
our.StatEffect_Exist(info.PetStatus.Petrified))
|
||||
|
||||
//根本没释放技能,这些效果全部失效
|
||||
for _, e := range our.EffectCache {
|
||||
@@ -242,9 +249,23 @@ func (our *Input) RecoverEffect() {
|
||||
}
|
||||
|
||||
}
|
||||
fmt.Printf("[RecoverEffect] done input=%p effects=%d cache=%d lost=%d paralysis=%v fear=%v sleep=%v tired=%v petrified=%v\n",
|
||||
our, len(our.Effects), len(our.EffectCache), len(our.EffectLost),
|
||||
our.StatEffect_Exist(info.PetStatus.Paralysis),
|
||||
our.StatEffect_Exist(info.PetStatus.Fear),
|
||||
our.StatEffect_Exist(info.PetStatus.Sleep),
|
||||
our.StatEffect_Exist(info.PetStatus.Tired),
|
||||
our.StatEffect_Exist(info.PetStatus.Petrified))
|
||||
|
||||
}
|
||||
func (our *Input) ReactvieEffect() {
|
||||
fmt.Printf("[ReactvieEffect] input=%p effects=%d cache=%d lost=%d paralysis=%v fear=%v sleep=%v tired=%v petrified=%v\n",
|
||||
our, len(our.Effects), len(our.EffectCache), len(our.EffectLost),
|
||||
our.StatEffect_Exist(info.PetStatus.Paralysis),
|
||||
our.StatEffect_Exist(info.PetStatus.Fear),
|
||||
our.StatEffect_Exist(info.PetStatus.Sleep),
|
||||
our.StatEffect_Exist(info.PetStatus.Tired),
|
||||
our.StatEffect_Exist(info.PetStatus.Petrified))
|
||||
|
||||
//根本没释放技能,这些效果全部失效
|
||||
for _, e := range our.EffectLost {
|
||||
@@ -261,6 +282,13 @@ func (our *Input) ReactvieEffect() {
|
||||
our.AddEffect(e.GetInput(), e)
|
||||
}
|
||||
|
||||
fmt.Printf("[ReactvieEffect] done input=%p effects=%d cache=%d lost=%d paralysis=%v fear=%v sleep=%v tired=%v petrified=%v\n",
|
||||
our, len(our.Effects), len(our.EffectCache), len(our.EffectLost),
|
||||
our.StatEffect_Exist(info.PetStatus.Paralysis),
|
||||
our.StatEffect_Exist(info.PetStatus.Fear),
|
||||
our.StatEffect_Exist(info.PetStatus.Sleep),
|
||||
our.StatEffect_Exist(info.PetStatus.Tired),
|
||||
our.StatEffect_Exist(info.PetStatus.Petrified))
|
||||
}
|
||||
func (our *Input) GenSataus() {
|
||||
our.Status = [20]int8{}
|
||||
|
||||
Reference in New Issue
Block a user