mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 16:02:26 +08:00
修复编译不过
This commit is contained in:
@@ -392,10 +392,9 @@ func (g *Game) SetVehicleStamina(player *model.Player, vehicleEntity *Entity, st
|
|||||||
// SetPlayerStamina 设置玩家耐力
|
// SetPlayerStamina 设置玩家耐力
|
||||||
func (g *Game) SetPlayerStamina(player *model.Player, stamina uint32) {
|
func (g *Game) SetPlayerStamina(player *model.Player, stamina uint32) {
|
||||||
// 设置玩家的耐力
|
// 设置玩家的耐力
|
||||||
prop := constant.PLAYER_PROP_CUR_PERSIST_STAMINA
|
player.PropertiesMap[uint16(constant.PLAYER_PROP_CUR_PERSIST_STAMINA)] = stamina
|
||||||
player.PropertiesMap[prop] = stamina
|
|
||||||
// logger.Debug("player stamina set, stamina: %v", stamina)
|
// logger.Debug("player stamina set, stamina: %v", stamina)
|
||||||
g.PlayerPropNotify(player, prop)
|
g.PlayerPropNotify(player, uint16(constant.PLAYER_PROP_CUR_PERSIST_STAMINA))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *Game) PlayerPropNotify(player *model.Player, playerPropId uint16) {
|
func (g *Game) PlayerPropNotify(player *model.Player, playerPropId uint16) {
|
||||||
|
|||||||
Reference in New Issue
Block a user