Esempio n. 1
0
 public ActiveNpc(NpcType npc, Vector2 location )
 {
     Type = npc;
     Ai = npc.DefaultAi;
     Name = Type.Name;
     Health = npc.BaseStats.Str * 10;
     Movement = new Movement(location, npc.Race.Animation.CurrentLocation.Width, npc.Race.Animation.CurrentLocation.Height);
     Invunerable = 0;
     CurrentPath = null;
 }
Esempio n. 2
0
 public NpcType(string name, NpcRace race, NpcAi ai)
 {
     Name = name;
     Race = race;
     DefaultAi = ai;
     Shop = null;
     Drops = new List<DropChance>();
     Dialog = new NpcDialog();
     Dialog.Add("Intro text", NpcInteraction.NpcInteractionState.Intro);
     BaseStats = new Stats();
 }