Exemplo n.º 1
0
 internal static void RegisterBuffs()
 {
     Buffs.TemplArmorBuff             = Buffs.AddNewBuff("TemplArmorBuff", Addressables.LoadAssetAsync <BuffDef>("RoR2/Base/RoboBallBoss/bdEngiShield.asset").WaitForCompletion().iconSprite, new Color(0.54f, 0.21f, 0.12f), false, false);
     Buffs.TemplarstationaryArmorBuff = Buffs.AddNewBuff("TemplarstationaryArmorBuff", Addressables.LoadAssetAsync <BuffDef>("RoR2/Base/RoboBallBoss/bdEngiShield.asset").WaitForCompletion().iconSprite, new Color(0.74f, 0.41f, 0.32f), false, false);
     Buffs.TemplarigniteDebuff        = Buffs.AddNewBuff("TemplarScorchedDebuff", Addressables.LoadAssetAsync <BuffDef>("RoR2/Base/ArmorReductionOnHit/bdPulverized.asset").WaitForCompletion().iconSprite, new Color(0.3f, 0.3f, 0.3f), false, true);
     Buffs.TemplarOverdriveBuff       = Buffs.AddNewBuff("TemplarOverdriveBuff", Addressables.LoadAssetAsync <BuffDef>("RoR2/Base/WarCryOnMultiKill/bdWarCryBuff.asset").WaitForCompletion().iconSprite, new Color(0.84f, 0.51f, 0.42f), false, false);
 }
Exemplo n.º 2
0
        public void Awake()
        {
            this.ReadConfig();
            Assets.Initialize();
            Buffs.RegisterBuffs();
            Projectiles.ProjectileSetup();
            Hook.HookSetup();
            Templar.TemplarSetup();
            TemplarItemDisplays.InitializeItemDisplays();
            ContentManager.collectContentPackProviders += this.ContentManager_collectContentPackProviders;

            RoR2Application.onLoad += AddItemDisplays;
        }