Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public MsgPlayerEx(Monster aMonster)
- : base((UInt16)(154 + aMonster.Name.Length))
- {
- Id = aMonster.UniqId;
- Mesh = aMonster.Look;
- PosX = aMonster.X;
- PosY = aMonster.Y;
- Status = aMonster.Statuses;
- Life = (byte)aMonster.CurHP;
- MonsterLevel = (byte)aMonster.Level;
- Direction = aMonster.Direction;
- Pose = (Byte)aMonster.Action;
- if (aMonster.CurHP > ushort.MaxValue)
- {
- Life = (ushort)(ushort.MaxValue / aMonster.CurHP * 100);
- }
- else
- {
- Life = (ushort)aMonster.CurHP;
- }
- __StrPacker = new StringPacker(this, 152);
- __StrPacker.AddString(aMonster.Name);
- }
Advertisement
Add Comment
Please, Sign In to add comment