Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public uint Hitpoints
- {
- get
- {
- return _hitpoints;
- }
- set
- {
- if (EntityFlag == EntityFlag.Player)
- Update(Network.GamePackets.Update.Hitpoints, value, true);
- else if (EntityFlag == EntityFlag.Monster)
- {
- var update = new Update(true);
- update.UID = UID;
- update.Append(Network.GamePackets.Update.Hitpoints, value);
- MonsterInfo.SendScreen(update);
- }
- _hitpoints = value;
- if (Boss > 0)
- {
- uint key = (uint)(MaxHitpoints / 10000);
- if (key != 0)
- WriteUInt16((ushort)(value / key), _Hitpoints, SpawnPacket);
- else
- WriteUInt16((ushort)(value * MaxHitpoints / 1000 / 1.09), _Hitpoints, SpawnPacket);
- }
- else
- WriteUInt16((ushort)value, _Hitpoints, SpawnPacket);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement