Beispiel #1
0
        /// <summary>
        /// Stores the gift giving event described by the NPC receiving and the gift given.
        /// </summary>
        /// <param name="npc">The NPC receiving the gift</param>
        /// <param name="gift">The Gift being given</param>
        public void AddGift(StardewValley.NPC npc, StardewValley.Item gift)
        {
            NPCGift equivalent = new NPCGift(npc.name, gift.Name);

            if (!giftsMade.Contains(equivalent))
            {
                giftsMade.Add(equivalent);
            }
        }
Beispiel #2
0
 public NPC(StardewNPC npc)
 {
     _npc      = npc;
     _birthday = new GameDate(npc?.Birthday_Season ?? "spring", npc?.Birthday_Day ?? 0);
 }
Beispiel #3
0
 internal Character(StardewValley.NPC character)
 {
     Char = character;
 }
Beispiel #4
0
 public NPC(StardewNPC npc)
 {
     _npc      = npc;
     _birthday = new GameDate(npc.Birthday_Season, npc.Birthday_Day);
 }