2015-07-03 11:26:41 -06:00

63 lines
1.1 KiB
C#

using System;
using TrueCraft.API;
namespace TrueCraft.Core.Entities
{
public class SlimeEntity : MobEntity
{
public byte SlimeSize { get; set; }
public SlimeEntity() : this(4)
{
}
public SlimeEntity(byte size)
{
SlimeSize = size;
}
public override MetadataDictionary Metadata
{
get
{
var meta = base.Metadata;
meta[16] = new MetadataByte(SlimeSize);
return meta;
}
}
public override Size Size
{
get
{
return new Size(0.6 * SlimeSize);
}
}
public override short MaxHealth
{
get
{
return (short)(Math.Pow(SlimeSize, 2));
}
}
public override sbyte MobType
{
get
{
return 55;
}
}
public override bool Friendly
{
get
{
return false;
}
}
}
}