游泳溺水初步

This commit is contained in:
UnKownOwO
2022-12-20 15:12:42 +08:00
parent 61e8ed92b1
commit 391738e29a
11 changed files with 185 additions and 32 deletions

View File

@@ -10,6 +10,7 @@ import (
type Avatar struct {
AvatarId uint32 `bson:"avatarId"` // 角色id
LifeState uint16 `bson:"lifeState"` // 存活状态
Level uint8 `bson:"level"` // 等级
Exp uint32 `bson:"exp"` // 经验值
Promote uint8 `bson:"promote"` // 突破等阶
@@ -110,6 +111,7 @@ func (p *Player) AddAvatar(avatarId uint32) {
}
avatar := &Avatar{
AvatarId: avatarId,
LifeState: constant.LifeStateConst.LIFE_ALIVE,
Level: 1,
Exp: 0,
Promote: 0,

View File

@@ -14,6 +14,7 @@ type StaminaInfo struct {
LastSkillId uint32 // 最后释放的技能Id
LastSkillTime int64 // 最后释放技能的时间
LastSkillStartTime int64 // 最后执行开始技能耐力消耗的时间
DrownBackTime int64 // 溺水返回安全点的时间
}
// SetStaminaCost 设置动作需要消耗的耐力