示例#1
0
        public override void Update(DwarfTime gameTime, ChunkManager chunks, Camera camera)
        {
            if (Buff == null)
            {
                return;
            }

            base.Update(gameTime, chunks, camera);

            foreach (var creature in Creatures)
            {
                creature.Stats.AddBuff(Buff.Clone()); // Todo: Check if the creature already has this kind of buff and dissalow if so.
            }
        }
示例#2
0
 public void Drink(Creature creature)
 {
     creature.Stats.AddBuff(Effects.Clone());
 }