fix(stats): allow negative HP

This commit is contained in:
SabreCat
2023-05-01 10:47:42 -05:00
parent 6ed5a0f44b
commit 5aa2d9c68d

View File

@@ -614,7 +614,7 @@ export default new Schema({
},
},
stats: {
hp: { $type: Number, default: shared.maxHealth, min: 0 },
hp: { $type: Number, default: shared.maxHealth },
mp: { $type: Number, default: 10, min: 0 },
exp: { $type: Number, default: 0, min: 0 },
gp: { $type: Number, default: 0, min: 0 },