Exemplo n.º 1
0
 private Diluvian()
 {
     DiluvianDef = new RoR2.DifficultyDef(
         DiluvianCoef,
         "DIFFICULTY_DILUVIAN_NAME",
         assetString,
         "DIFFICULTY_DILUVIAN_DESCRIPTION",
         DiluvianColor
         );
     DefaultLanguage = new Dictionary <string, string>();
 }
        // Token: 0x060018D5 RID: 6357 RVA: 0x0006ADF4 File Offset: 0x00068FF4
        public static RuleDef FromDifficulty()
        {
            RuleDef ruleDef = new RuleDef("Difficulty", "RULE_NAME_DIFFICULTY");

            for (DifficultyIndex difficultyIndex = DifficultyIndex.Easy; difficultyIndex < DifficultyIndex.Count; difficultyIndex++)
            {
                DifficultyDef difficultyDef = DifficultyCatalog.GetDifficultyDef(difficultyIndex);
                RuleChoiceDef ruleChoiceDef = ruleDef.AddChoice(difficultyIndex.ToString(), null, false);
                ruleChoiceDef.spritePath       = difficultyDef.iconPath;
                ruleChoiceDef.tooltipNameToken = difficultyDef.nameToken;
                ruleChoiceDef.tooltipNameColor = difficultyDef.color;
                ruleChoiceDef.tooltipBodyToken = difficultyDef.descriptionToken;
                ruleChoiceDef.difficultyIndex  = difficultyIndex;
            }
            ruleDef.defaultChoiceIndex = 1;
            return(ruleDef);
        }
Exemplo n.º 3
0
        private void Awake()
        {
            var archWispSpawnCard = Resources.Load <CharacterSpawnCard>("SpawnCards/CharacterSpawnCards/cscArchWisp");

            archWispSpawnCard.directorCreditCost = 300;

            var archWispDirCard = new DirectorCard();

            archWispDirCard.allowAmbushSpawn        = true;
            archWispDirCard.forbiddenUnlockable     = "";
            archWispDirCard.minimumStageCompletions = 4;
            archWispDirCard.preventOverhead         = false;
            archWispDirCard.requiredUnlockable      = "";
            archWispDirCard.selectionWeight         = 1;
            archWispDirCard.spawnCard     = archWispSpawnCard;
            archWispDirCard.spawnDistance = DirectorCore.MonsterSpawnDistance.Standard;

            archWispCard = new DirectorAPI.DirectorCardHolder();
            archWispCard.SetCard(archWispDirCard);
            archWispCard.SetInteractableCategory(DirectorAPI.InteractableCategory.None);
            archWispCard.SetMonsterCategory(DirectorAPI.MonsterCategory.Minibosses);

            var diff  = new RoR2.DifficultyDef(3f, "REIN_DIFFICULTY_DEUTERIUM_NAME", "Textures/ItemIcons/texMaskIcon", "REIN_DIFFICULTY_DEUTERIUM_DESC", new Color(0f, 0f, 0f, 1f));
            var diff2 = new RoR2.DifficultyDef(4f, "REIN_DIFFICULTY_TRITIUM_NAME", "Textures/ItemIcons/texMaskIcon", "REIN_DIFFICULTY_TRITIUM_DESC", new Color(0f, 0f, 0f, 1f));

            diffInd1 = DifficultyAPI.AddDifficulty(diff);
            diffInd2 = DifficultyAPI.AddDifficulty(diff2);


            /*
             * //Disabled cards
             * cardAdjustments["BeetleMaster"] = new SpawnParams( 0.0f, 1.0f, true );
             * cardAdjustments["JellyfishMaster"] = new SpawnParams( 0.0f, 1.0f, true );
             *
             * //Reduced cards
             * cardAdjustments["BeetleQueenMaster"] = new SpawnParams( 0.25f, 1.0f, true );
             *
             * //Neutral cards
             * cardAdjustments["TitanMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["VagrantMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["GolemMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["LemurianMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["ClayBossMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["BeetleGuardMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["HermitCrabMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["BellMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["GravekeeperMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["ImpBossMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["ImpMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["MagmaWormMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["RoboBallbossMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["VultureMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             * cardAdjustments["BisonMaster"] = new SpawnParams( 1.0f, 1.0f, true );
             *
             * //Buffed cards
             * cardAdjustments["WispMaster"] = new SpawnParams( 3.0f, 1.0f, true );
             * cardAdjustments["ClayBruiserMaster"] = new SpawnParams( 2.0f, 1.0f, true );
             * cardAdjustments["GreaterWispMaster"] = new SpawnParams( 2.0f, 0.5f, true );
             * cardAdjustments["ElectricWormMaster"] = new SpawnParams( 2.0f, 0.5f, true );
             * cardAdjustments["LemurianBruiserMaster"] = new SpawnParams( 2.0f, 1.0f, true );
             */
        }