コード例 #1
0
 public static void getPickup(Vector3 position)
 {
     try {
         RandomizerBonus.CollectPickup();
         RandomizerStatsManager.IncPickup();
         if (Randomizer.ColorShift)
         {
             Randomizer.changeColor();
         }
         int hashKey = GetHashKey(position);
         if (hashKey != -1)
         {
             RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[hashKey], hashKey, true);
             if (Randomizer.HotColdItems.ContainsKey(hashKey))
             {
                 Characters.Sein.Inventory.SetRandomizerItem(Randomizer.HotColdItems[hashKey].Id, 1);
                 RandomizerColorManager.UpdateHotColdTarget();
             }
             return;
         }
     }
     catch (Exception e) {
         Randomizer.LogError("GetPickup: " + e.Message);
     }
 }
コード例 #2
0
 public static void getEvent(int ID)
 {
     RandomizerBonus.CollectPickup();
     if (Randomizer.ColorShift)
     {
         Randomizer.changeColor();
     }
     RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[ID * 4], ID * 4, true);
 }
コード例 #3
0
 // Token: 0x06003749 RID: 14153 RVA: 0x000E1208 File Offset: 0x000DF408
 public static void getMapStone()
 {
     if (!Randomizer.ProgressiveMapStones)
     {
         Randomizer.getPickup();
         return;
     }
     RandomizerBonus.CollectPickup();
     if (Randomizer.ColorShift)
     {
         Randomizer.changeColor();
     }
     Characters.Sein.Inventory.SkillPointsCollected += 8388608;
     RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[20 + RandomizerBonus.MapStoneProgression() * 4], 20 + RandomizerBonus.MapStoneProgression() * 4, true);
 }
コード例 #4
0
    // Token: 0x06003745 RID: 14149 RVA: 0x000E0D70 File Offset: 0x000DEF70
    public static void getPickup(Vector3 position)
    {
        RandomizerBonus.CollectPickup();
        if (Randomizer.ColorShift)
        {
            Randomizer.changeColor();
        }
        int num = (int)(Math.Floor((double)((int)position.x) / Randomizer.GridFactor) * Randomizer.GridFactor) * 10000 + (int)(Math.Floor((double)((int)position.y) / Randomizer.GridFactor) * Randomizer.GridFactor);

        if (Randomizer.Table.ContainsKey(num))
        {
            RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[num], num, true);
            return;
        }
        for (int i = -1; i <= 1; i++)
        {
            for (int j = -1; j <= 1; j++)
            {
                if (Randomizer.Table.ContainsKey(num + (int)Randomizer.GridFactor * (10000 * i + j)))
                {
                    RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[num + (int)Randomizer.GridFactor * (10000 * i + j)], num + (int)Randomizer.GridFactor * (10000 * i + j), true);
                    return;
                }
            }
        }
        for (int k = -2; k <= 2; k += 4)
        {
            for (int l = -1; l <= 1; l++)
            {
                if (Randomizer.Table.ContainsKey(num + (int)Randomizer.GridFactor * (10000 * k + l)))
                {
                    RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[num + (int)Randomizer.GridFactor * (10000 * k + l)], num + (int)Randomizer.GridFactor * (10000 * k + l), true);
                    return;
                }
            }
        }
        Randomizer.showHint("Error finding pickup at " + ((int)position.x).ToString() + ", " + ((int)position.y).ToString());
    }
コード例 #5
0
 // Token: 0x06003780 RID: 14208 RVA: 0x0002BB3F File Offset: 0x00029D3F
 public static void CollectMapstone()
 {
     Characters.Sein.Inventory.IncRandomizerItem(23, 1);
     RandomizerBonus.CollectPickup();
 }