Пример #1
0
    public static HackerData SetTestHackerOne()
    {
        HackerData newHacker = ScriptableObject.CreateInstance <HackerData>();

        newHacker.CreateNewHackerByClassId(0);

        return(newHacker);
    }
Пример #2
0
    // Represents the difference between an empty player object and an object that a player has been loaded into

    public void SetupNewGame(int newSaveSlot)
    {
        saveSlot       = newSaveSlot;
        isPlayerLoaded = true;

        // TODO: CHANGE THIS BACK TO ZERO
        playerLevel    = 1;
        currentCredits = 1000000;

        ownedRunners = new List <CharacterData>();
        ownedHackers = new List <HackerData>();
        ownedItems   = new List <Item>();

        // Setup default runner
        currentRunner = ScriptableObject.CreateInstance <CharacterData>();
        currentRunner.CreateNewRunnerByClassId(0);
        currentRunner.UnlockRunner();
        ownedRunners.Add(currentRunner);
        ownedItems.AddRange(currentRunner.GetListOfEquippedItems());

        // Add placeholders for other runners
        CharacterData lockedRunnerOne = ScriptableObject.CreateInstance <CharacterData>();

        lockedRunnerOne.CreateNewRunnerByClassId(1);
        ownedRunners.Add(lockedRunnerOne);
        CharacterData lockedRunnerTwo = ScriptableObject.CreateInstance <CharacterData>();

        lockedRunnerTwo.CreateNewRunnerByClassId(2);
        ownedRunners.Add(lockedRunnerTwo);

        // Setup default hacker
        currentHacker = ScriptableObject.CreateInstance <HackerData>();
        currentHacker.CreateNewHackerByClassId(0);
        currentHacker.UnlockHacker();
        ownedHackers.Add(currentHacker);
        ownedItems.AddRange(currentHacker.GetListOfEquippedItems());

        // Add placeholders for other hackers
        HackerData lockedHackerOne = ScriptableObject.CreateInstance <HackerData>();

        lockedHackerOne.CreateNewHackerByClassId(1);
        ownedHackers.Add(lockedHackerOne);
        HackerData lockedHackerTwo = ScriptableObject.CreateInstance <HackerData>();

        lockedHackerTwo.CreateNewHackerByClassId(2);
        ownedHackers.Add(lockedHackerTwo);

        //RunnerMod adaptableCranioPatch = ScriptableObject.CreateInstance<RunnerMod>();
        //adaptableCranioPatch.SetupMod("Adaptable CranioPatch");
        ////adaptableCranioPatch.SetItemLevel(2);
        //ownedItems.Add(adaptableCranioPatch);

        //RunnerMod adrenalInjector = ScriptableObject.CreateInstance<RunnerMod>();
        //adrenalInjector.SetupMod("Adrenal Injector");
        //ownedItems.Add(adrenalInjector);

        //RunnerMod sensoryRegulator = ScriptableObject.CreateInstance<RunnerMod>();
        //sensoryRegulator.SetupMod("Sensory Regulator");
        //ownedItems.Add(sensoryRegulator);

        //RunnerMod automatedDigits = ScriptableObject.CreateInstance<RunnerMod>();
        //automatedDigits.SetupMod("Automated Digits");
        //ownedItems.Add(automatedDigits);

        //RunnerMod automatedDigitsTwo = ScriptableObject.CreateInstance<RunnerMod>();
        //automatedDigitsTwo.SetupMod("Automated Digits");
        //ownedItems.Add(automatedDigitsTwo);

        //RunnerMod polymorphicSupport = ScriptableObject.CreateInstance<RunnerMod>();
        //polymorphicSupport.SetupMod("Polymorphic Support");
        //ownedItems.Add(polymorphicSupport);

        //RunnerMod polymorphicSupportTwo = ScriptableObject.CreateInstance<RunnerMod>();
        //polymorphicSupportTwo.SetupMod("Polymorphic Support");
        //ownedItems.Add(polymorphicSupportTwo);

        //RunnerMod tornadoHandgun = ScriptableObject.CreateInstance<RunnerMod>();
        //tornadoHandgun.SetupMod("Tornado Handgun T-492");
        //ownedItems.Add(tornadoHandgun);

        //RunnerMod voltHandCannon = ScriptableObject.CreateInstance<RunnerMod>();
        //voltHandCannon.SetupMod("Volt HandCannon V-1");
        //ownedItems.Add(voltHandCannon);

        Loadout runnerLoadout = currentRunner.GetLoadout();

        //runnerLoadout.EquipItem(adaptableCranioPatch);
        //runnerLoadout.EquipItem(adrenalInjector);
        //runnerLoadout.EquipItem(sensoryRegulator);
        //runnerLoadout.EquipItem(automatedDigits, Loadout.LeftOrRight.Left);
        //runnerLoadout.EquipItem(automatedDigitsTwo, Loadout.LeftOrRight.Right);
        //runnerLoadout.EquipItem(polymorphicSupport, Loadout.LeftOrRight.Left);
        //runnerLoadout.EquipItem(polymorphicSupportTwo, Loadout.LeftOrRight.Right);
        //runnerLoadout.EquipItem(tornadoHandgun);
        //runnerLoadout.EquipItem(voltHandCannon);

        GenerateJobOptions();
        GenerateNewShop();
    }