mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-02-13 03:33:40 +00:00
10 / 100 * 255 = 0
When a player dont have full life, he is on ground with 0 HP ;)
This commit is contained in:
parent
599d767598
commit
d34817c5a8
2 changed files with 3 additions and 2 deletions
|
|
@ -15,8 +15,8 @@ class AvatarConverter extends ObjectCreateConverter[Player]() {
|
|||
Success(
|
||||
CharacterData(
|
||||
MakeAppearanceData(obj),
|
||||
obj.Health / obj.MaxHealth * 255, //TODO not precise
|
||||
if(MaxArmor == 0) { 0 } else { obj.Armor / MaxArmor * 255 }, //TODO not precise
|
||||
255 * obj.Health / obj.MaxHealth, //TODO not precise
|
||||
if(MaxArmor == 0) { 0 } else { 255 * obj.Armor / MaxArmor }, //TODO not precise
|
||||
DressBattleRank(obj),
|
||||
DressCommandRank(obj),
|
||||
recursiveMakeImplantEffects(obj.Implants.iterator),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue