public override void Pickup(PlayerController player) { Sheila.BuildPrefab(); user = player; base.Pickup(player); }
public override void Start() { try { ItemBuilder.Init(); //sound stuffs ZipFilePath = this.Metadata.Archive; FilePath = this.Metadata.Directory; //register all items and synergies. if text at the bottom doesnt fire something along the way crashed/produced and error //Not all scripts are loaded some are saved for a later date. // general passive Dizzyring.Register(); Spring_roll.Register(); Salmon_roll.Register(); dragun_roll.Register(); Long_roll_boots.Register(); Rocket_boots.Register(); Fly_Friend.Register(); Space_hammer.Register(); Sus_rounds.Register(); nightmare_mode.Register(); Fates_blessing.Register(); daft_helm.Register(); punk_helm.Register(); book.Register(); clean_soul.Register(); stardust.Register(); loan.Register(); tabletech_dizzy.Register(); SCP_323.Register(); Cant_touch_ths.Register(); Super_fly.Register(); Im_blue.Register(); bad_attitude.Register(); rubber_man.Register(); Survivor.Register(); speedster.Register(); Danger_dance.Register(); disco_inferno.Register(); persuasive_bullets.Register(); Slide_tech.Register(); PeaceStandard.Register(); SpeedyChamber.Register(); ChamberofChambers.Register(); menacing_aura.Register(); Malware.Register(); Queasy.Register(); Farsighted.Register(); ten_gallon.Register(); BleakBubbles.Register(); TableTech_AmpedCover.Register(); War_paint.Register(); Alex.Add(); //blobsplit.Register(); // general active Led_Maiden.Register(); jojo_arrow.Register(); nano_boost.Register(); rad_board.Register(); koolbucks.Register(); sandvich.Register(); dog.Register(); power_bracer.Register(); roundabout.Register(); Eye_of_the_tiger.Register(); Luft_balloons.Register(); punisher.Register(); vodoo_kit.Register(); BloodyNapkin.Register(); Pig_Whistle.Register(); shield.Register(); AndroidReactorCore.Register(); GnatHat.Register(); HotelCaliforniaSpecial.Register(); MindControlHeadband.Register(); Dullahan_curse.Register(); Rage_shield.Register(); Sheila.Register(); //Guns hail_2_u.Add(); fourth_wall_breaker.Add(); Za_hando.Add(); violin.Add(); Queen.Add(); Lance.Add(); MagicHat.Add(); Lil_Boom.Add(); BlackStabbith.Add(); Ball.Add(); harpoon.Add(); Mozam.Add(); GunLance.Add(); hot_coffee.Add(); NewNewCopperChariot.Add(); Hells_bells.Add(); Succ.Add(); Sheila_LMG.Add(); TaurenTails.Add(); ToyAK.Add(); punt.Add(); //BeatDownUnder.Add(); Catalyzer.Add(); //Devtools noclip.Register(); ActiveCharger.Register(); // shrines //KTGShrine.Add(); //orbitals Stopda.Register(); DualGunsManager.AddDual(); //unfinished or unfunctional //Rhythmic_heart.Register(); //smooth_criminal.Register(); //Old_Computer.Register(); //bandaids.Register(); //Jim.Register(); //shaw.Register(); //Empty_Collection.Register(); //Rocker_Collection.Register(); //Knives.Register(); //Dio.Register(); //testing_gun.Add() //Spear.Add(); //SealedScythe.Add(); //KnightSpear.Add(); //SpinHammer.Add(); //trinket.Register(); //Corrupted_persuasive_bullets.Register(); //RatGun.Add(); //jumper.Add(); //grapplehooks.Register(); //pocketwatch.Register(); //DanceParty.Register(); //bandaids.Register(); //Glun.Add(); //synergies GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.tomislav() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Daft_Punk() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Super_Duper_Fly() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.split() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.flurry_of_blows() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.BEEES() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.nano() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Big_problem() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.lich() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Chariot() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.the_World_revolving() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.doubleStandard() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Mozam_hammer() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Mozam_fools() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Mozam_Throw() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Mozam_Shatter() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Mozam_mazoM() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.MonsterHunter() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.AC() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.DC() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Mas_Queso() }).ToArray(); GameManager.Instance.SynergyManager.synergies = GameManager.Instance.SynergyManager.synergies.Concat(new AdvancedSynergyEntry[] { new Customsynergiesknives.Iron_grip() }).ToArray(); AudioResourceLoader.InitAudio(); Hook hook = new Hook( typeof(PlayerController).GetProperty("LocalShaderName", BindingFlags.Public | BindingFlags.Instance).GetGetMethod(), typeof(Module).GetMethod("LocalShaderNameGetHook") ); Log($"Don't bring a {MOD_NAME} v{VERSION}. You'll lose!", TEXT_COLOR); } catch (Exception e) { ETGModConsole.Log($"<color=#{TEXT_COLOR}>{MOD_NAME}: {e.Message}</color>"); ETGModConsole.Log(e.StackTrace); Log(e.Message); Log("\t" + e.StackTrace); Log($"Something in Knife_to_a_gunfight broke somewhere...", TEXT_COLOR); Log($"If you're reading this please tell me at the gungeon discord and screenshot the error.", TEXT_COLOR); } }