Пример #1
0
        public static CustomRelic CreateRelic(string guid, string displayName, string description, string flavor, string iconFilePath, Thor.EntityData.RarityType rarity, int goldCost)
        {
            CustomRelic so = (CustomRelic)Thor.EntityData.CreateInstance(typeof(CustomRelic));

            so.Initialize(guid, displayName, description, flavor, iconFilePath, rarity, goldCost);
            Thor.GameData.Instance.RelicCollection.Add(so as Thor.DataObject);
            return(so);
        }
Пример #2
0
 public static bool HasCustomRelic(CustomRelic relic)
 {
     foreach (Thor.SimulationPlayer player in Thor.Game.Instance.Simulation.Players)
     {
         //if (player.HasItem(relic as Thor.ItemData))
         {
             return(true);
         }
     }
     return(false);
 }