예제 #1
0
 // Token: 0x0600000A RID: 10 RVA: 0x00002838 File Offset: 0x00000A38
 public void Patch()
 {
     PrefabDatabasePatcher.customPrefabs.Add(this);
     EntTechDataPatcher.customTechData.Add(Path.GetFileName(this.Path), (TechType)6969);
     LanguagePatcher.customLanguageLines.Add("GhostRayRedEgg", "Crimson Ray Egg");
     LanguagePatcher.customLanguageLines.Add("Tooltip_GhostRayRedEgg", "The egg of a lava zone Crimson Ray");
     LanguagePatcher.customLanguageLines.Add("GhostRayRedEggUndiscovered", "Inactive Lava Zone egg");
     LanguagePatcher.customLanguageLines.Add("Tooltip_GhostRayRedEggUndiscovered", "Undiscovered Egg from the Inactive Lava Zone");
     CraftDataHandler.SetHarvestType(Techtype."GhostRayRedEgg", HarvestType.Pick);
     CraftDataHandler.GetCraftDataDictionary <Dictionary <TechType, string> >("pickupSoundList").Add((TechType)6969, "event:/loot/pickup_egg");
     CraftDataHandler.GetCraftDataDictionary <Dictionary <TechType, string> >("pickupSoundList").Add((TechType)6968, "event:/loot/pickup_egg");
     CraftDataHandler.GetCraftDataDictionary <Dictionary <TechType, Vector2int> >("itemSizes").Add((TechType)6968, new Vector2int(2, 2));
     CraftDataHandler.GetCraftDataDictionary <Dictionary <TechType, Vector2int> >("itemSizes").Add((TechType)6969, new Vector2int(2, 2));
     LootPatcher.customLootTables.Add(this.Key, new LootDistributionData.SrcData
     {
         prefabPath   = this.Path,
         distribution = new List <LootDistributionData.BiomeData>
         {
             new LootDistributionData.BiomeData
             {
                 biome       = BiomeType.InactiveLavaZone_Chamber_Floor,
                 count       = 1,
                 probability = 0.1f
             }
         }
     });
     WorldEntityInfoPatcher.customWorldEntityInfo.Add(new WorldEntityInfo
     {
         cellLevel  = LargeWorldEntity.CellLevel.Near,
         classId    = this.Key,
         techType   = (TechType)6969,
         slotType   = EntitySlot.Type.Small,
         localScale = Vector3.one,
         prefabZUp  = true
     });
     this.LoadResource();
 }