耐力模块消耗以及恢复

This commit is contained in:
UnKownOwO
2022-11-29 22:18:07 +08:00
parent 40e7dbcffd
commit f70a890338
3 changed files with 61 additions and 25 deletions

View File

@@ -7,7 +7,6 @@ type StaminaCost struct {
CLIMB_START int32
CLIMB_JUMP int32
DASH int32
FIGHT int32
FLY int32
SKIFF_DASH int32
SPRINT int32
@@ -16,12 +15,7 @@ type StaminaCost struct {
SWIMMING int32
TALENT_DASH int32
TALENT_DASH_START int32
POWERED_FLY int32
POWERED_SKIFF int32
RUN int32
SKIFF int32
STANDBY int32
WALK int32
RESTORE int32 // 回复体力
}
func InitStaminaCostConst() {
@@ -31,7 +25,6 @@ func InitStaminaCostConst() {
StaminaCostConst.CLIMB_START = -500
StaminaCostConst.CLIMB_JUMP = -2500
StaminaCostConst.DASH = -360
StaminaCostConst.FIGHT = 0
StaminaCostConst.FLY = -60
StaminaCostConst.SKIFF_DASH = -204
StaminaCostConst.SPRINT = -1800
@@ -40,10 +33,5 @@ func InitStaminaCostConst() {
StaminaCostConst.SWIMMING = -80
StaminaCostConst.TALENT_DASH = -300
StaminaCostConst.TALENT_DASH_START = -1000
StaminaCostConst.POWERED_FLY = 500
StaminaCostConst.POWERED_SKIFF = 500
StaminaCostConst.RUN = 500
StaminaCostConst.SKIFF = 500
StaminaCostConst.STANDBY = 500
StaminaCostConst.WALK = 500
StaminaCostConst.RESTORE = 500
}