Пример #1
0
            public static void Postfix(Database.Attributes __instance)
            {
                var frostbiteThreshold = new Attribute("FrostbiteThreshold", false,
                                                       Attribute.Display.General, false);

                frostbiteThreshold.SetFormatter(new StandardAttributeFormatter(
                                                    GameUtil.UnitClass.Temperature, GameUtil.TimeSlice.None));
                __instance.Add(frostbiteThreshold);
            }
Пример #2
0
 public static void Postfix(Database.Attributes __instance)
 {
     Klei.AI.Attribute attribute = new Klei.AI.Attribute(HeartAttackMonitor.ATTRIBUTE_ID, false, Klei.AI.Attribute.Display.Details, false, 0f, null, null);
     attribute.SetFormatter(new ToPercentAttributeFormatter(1, GameUtil.TimeSlice.None));
     __instance.Add(attribute);
 }