mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复体力口渴上限是100的错误
This commit is contained in:
parent
6a1c848d6d
commit
4ceb1577bb
@ -97,7 +97,7 @@ public class GameSave_VPet : IGameSave
|
||||
{
|
||||
get => strengthFood; set
|
||||
{
|
||||
value = Math.Min(100, value);
|
||||
value = Math.Min(StrengthMax, value);
|
||||
if (value <= 0)
|
||||
{
|
||||
Health += value;
|
||||
@ -130,7 +130,7 @@ public class GameSave_VPet : IGameSave
|
||||
{
|
||||
get => strengthDrink; set
|
||||
{
|
||||
value = Math.Min(100, value);
|
||||
value = Math.Min(StrengthMax, value);
|
||||
if (value <= 0)
|
||||
{
|
||||
Health += value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user