예제 #1
0
    //Arena vars
    //GameObject m_Arena1;
    //public static float m_MaxX;
    //public static float m_MinX;
    //public static float m_MaxZ;
    //public static float m_MinZ;

    //void Awake()
    //{
    //    m_Arena1 = GameObject.Find("Arena1");
    //    var v = m_Arena1.transform.FindChild("Plane").GetComponent<MeshRenderer>();
    //    m_MaxX = v.bounds.center.x + v.bounds.extents.x;
    //    m_MinX = v.bounds.center.x - v.bounds.extents.x;

    //    m_MaxZ = v.bounds.center.z + v.bounds.extents.z;
    //    m_MinZ = v.bounds.center.z - v.bounds.extents.z;
    //    Debug.Log(m_MinX + " " + m_MaxX + " " + m_MinZ + " " + m_MaxZ);
    //}

    void Start()
    {
        //Find and sort spawnpoints
        var spawnpoints = GameObject.FindGameObjectsWithTag("SpawnPoint");

        if (spawnpoints.Length > 0)
        {
            m_SpawnPoints = new Transform[spawnpoints.Length];

            for (int i = 0; i < spawnpoints.Length; i++)
            {
                m_SpawnPoints[i] = spawnpoints[i].transform;
            }

            for (int write = 0; write < m_SpawnPoints.Length; write++)
            {
                for (int sort = 0; sort < m_SpawnPoints.Length - 1; sort++)
                {
                    if (m_SpawnPoints[sort].GetComponent <SpawnPoint>().m_ID > m_SpawnPoints[sort + 1].GetComponent <SpawnPoint>().m_ID)
                    {
                        var temp = m_SpawnPoints[sort + 1];
                        m_SpawnPoints[sort + 1] = m_SpawnPoints[sort];
                        m_SpawnPoints[sort]     = temp;
                    }
                }
            }
        }
        else
        {
            Debug.Log("Could not find any spawnpoints!");
        }

        m_Teleporter = GameObject.Find("Teleport").GetComponent <TeleporterController>();
        m_Player     = GameObject.Find("Player").GetComponent <PlayerController>();
    }
예제 #2
0
 // Token: 0x06003216 RID: 12822
 public void Highlight()
 {
     if (this.OriTarget)
     {
         Characters.Ori.MoveOriToPosition(this.OriTarget.position, this.OriDuration);
     }
     if (Characters.Sein.Abilities.SpiritFlame)
     {
         Characters.Sein.Abilities.SpiritFlame.AddLock("savePedestal");
     }
     Characters.Ori.GetComponent <Rigidbody>().velocity = Vector3.zero;
     Characters.Ori.EnableHoverWobbling = false;
     if (this.OriEnterAction)
     {
         this.OriEnterAction.Perform(null);
     }
     if (this.m_hint == null)
     {
         this.m_hint = UI.Hints.Show(this.SaveAndTeleportHintMessage, HintLayer.HintZone, 3f);
     }
     if (this.OnOriEnter)
     {
         Sound.Play(this.OnOriEnter.GetSound(null), base.transform.position, null);
     }
     if (this.m_sceneTeleporter)
     {
         TeleporterController.Activate(this.m_sceneTeleporter.Identifier);
     }
 }
예제 #3
0
    public static void Trigger(TeleporterController teleporterArg,
                               GameObject teleportingObjectArg)
    {
        e.teleporter        = teleporterArg;
        e.teleportingObject = teleportingObjectArg;

        MMEventManager.TriggerEvent(e);
    }
예제 #4
0
파일: Player.cs 프로젝트: roaet/stuffuv
 void OnTriggerExit(Collider other)
 {
     tp = other.gameObject.GetComponent <TeleporterController>();
     if (tp)
     {
         onTeleporter = false;
         return;
     }
 }
예제 #5
0
 // Token: 0x0600321B RID: 12827
 private void TeleportOnPedestal()
 {
     if (this.m_hint)
     {
         this.m_hint.HideMessageScreen();
     }
     this.MarkAsUsed();
     Characters.Sein.PlatformBehaviour.PlatformMovement.PositionX = base.transform.position.x;
     TeleporterController.Show(this.m_sceneTeleporter.Identifier);
 }
예제 #6
0
    public void Build(string display_name, List <string> names, float startin_pos = 500f)
    {
        EraseAll();
        factoryEntities        = new List <FactoryEntity>();
        ProductionJobName.text = display_name;
        float        current_x_pos        = startin_pos;
        List <float> workstationPositions = new List <float>();

        workstationPositions.Add(current_x_pos); // workstation start
        string prev_n = names[0];

        foreach (string n in names)
        {
            if (prev_n != n)
            {
                workstationPositions.Add(current_x_pos); // conveyor start
                // Create a conveyor
                GameObject conv = Instantiate(conveyor, transform);
                conv.GetComponent <RectTransform>().position = new Vector2(current_x_pos, y_pos);
                current_x_pos += conv.GetComponent <RectTransform>().rect.width;
                workstationPositions.Add(current_x_pos); // conveyor end
            }
            // Create a workstation
            Workstation w        = workstationNameDict[n];
            GameObject  instance = Instantiate(w.prefab, transform);
            instance.GetComponent <RectTransform>().position = new Vector2(current_x_pos, y_pos);
            factoryEntities.Add(instance.GetComponent <FactoryEntity>());
            instance.GetComponent <FactoryEntity>().workstation_var_name = n;
            current_x_pos += w.effective_width;
            prev_n         = n;
        }
        workstationPositions.Add(current_x_pos); // workstation end
        // Create a conveyor
        GameObject convf = Instantiate(conveyor, transform);

        convf.GetComponent <RectTransform>().position = new Vector2(current_x_pos, y_pos);
        current_x_pos += convf.GetComponent <RectTransform>().rect.width;
        float end_x = current_x_pos + 130; // final conveyor end
        // Create a teleporter
        GameObject tele = Instantiate(teleporter, transform);

        tele.GetComponent <RectTransform>().position = new Vector2(current_x_pos, y_pos);
        current_x_pos       += tele.GetComponent <RectTransform>().rect.width;
        teleporterController = tele.GetComponent <TeleporterController>();
        if (PlayerPrefs.GetInt("ProductionRunning") == 0)
        {
            StopAll();
        }
        SetProductionJobStatusText();
        UpdateStars();
        SetProduceParams(workstationPositions, end_x);
        SetMaterialText();
        DeleteAllCurrentProduces();
    }
예제 #7
0
파일: Player.cs 프로젝트: roaet/stuffuv
    void OnTriggerEnter(Collider other)
    {
        tp = other.gameObject.GetComponent <TeleporterController>();
        if (tp)
        {
            onTeleporter = true;
            return;
        }
        MatchBook mb = other.gameObject.GetComponent <MatchBook>();

        if (mb)
        {
            bool pickedup = mb.PickUp();
            if (pickedup)
            {
                Debug.Log("Picked up a matchbook");
                MatchColor col = mb.GetColor();
                switch (col)
                {
                case MatchColor.White:
                    white += mb.quantity;
                    break;

                case MatchColor.Red:
                    red += mb.quantity;
                    break;

                case MatchColor.Blue:
                    blue += mb.quantity;
                    break;

                case MatchColor.Green:
                    green += mb.quantity;
                    break;
                }
            }
        }
        Stuffuv stuffuv = other.gameObject.GetComponent <Stuffuv>();

        if (stuffuv)
        {
            KillPlayer();
        }
    }
    public static void TeleportPickup(string Value)
    {
        int    shardCount = -1;
        char   colorChar  = ' ';
        string shardPart  = "";

        if (Value == "Ginso")
        {
            Characters.Sein.Inventory.SetRandomizerItem(1024, 1);
            shardCount = RandomizerBonus.WaterVeinShards();
            shardPart  = "Water Vein";
            colorChar  = '*';
        }
        if (Value == "Forlorn")
        {
            Characters.Sein.Inventory.SetRandomizerItem(1025, 1);
            shardCount = RandomizerBonus.GumonSealShards();
            shardPart  = "Gumon Seal";
            colorChar  = '#';
        }
        if (Value == "Horu")
        {
            Characters.Sein.Inventory.SetRandomizerItem(1026, 1);
            shardCount = RandomizerBonus.SunstoneShards();
            shardPart  = "Sunstone";
            colorChar  = '@';
        }

        if (Randomizer.Shards && shardCount >= 0 && shardCount < 2)
        {
            if (shardCount == 1)
            {
                shardPart = "1 more " + shardPart + " shard to activate";
            }
            else
            {
                shardPart = "2 " + shardPart + " shards to activate";
            }
            PickupMessage(colorChar + "Broken " + Value + " teleporter\nCollect " + shardPart + colorChar, 300);
            return;
        }
        TeleporterController.Activate(Randomizer.TeleportTable[Value].ToString(), false);
        PickupMessage(colorChar + Value + " teleporter activated" + colorChar);
    }
예제 #9
0
    private IEnumerator TeleportTo(TeleporterController dest)
    {
        this.isTeleporting = true;

        this.playerRigidbody.velocity      = Vector2.zero;
        this.playerRigidbody.interpolation = RigidbodyInterpolation2D.None;

        yield return(waitForFixedUpdate);

        float   step   = 0f;
        Vector3 target = new Vector3(0, 1, 1);
        Vector3 from   = this.playerBody.localScale;

        while (step < 1f)
        {
            step += this.scaleSpeed * Time.deltaTime;
            this.playerBody.localScale = Vector3.Lerp(from, target, step);
            yield return(null);
        }
        this.playerBody.localScale = target;

        this.isTeleporting = false;
    }
예제 #10
0
 public static void TeleportPickup(string Value)
 {
     TeleporterController.Activate(Randomizer.TeleportTable[Value].ToString());
     Randomizer.showHint(Value + " teleporter activated");
 }
예제 #11
0
파일: Player.cs 프로젝트: roaet/stuffuv
 void OnTriggerStay(Collider other)
 {
     tp = other.gameObject.GetComponent<TeleporterController>();
     if(tp) {
         onTeleporter = true;
         return;
     }
 }
예제 #12
0
파일: Player.cs 프로젝트: roaet/stuffuv
 void OnTriggerEnter(Collider other)
 {
     tp = other.gameObject.GetComponent<TeleporterController>();
     if(tp) {
         onTeleporter = true;
         return;
     }
     MatchBook mb = other.gameObject.GetComponent<MatchBook>();
     if(mb) {
         bool pickedup = mb.PickUp();
         if(pickedup) {
             Debug.Log("Picked up a matchbook");
             MatchColor col = mb.GetColor();
             switch(col) {
             case MatchColor.White:
                 white += mb.quantity;
                 break;
             case MatchColor.Red:
                 red += mb.quantity;
                 break;
             case MatchColor.Blue:
                 blue += mb.quantity;
                 break;
             case MatchColor.Green:
                 green += mb.quantity;
                 break;
             }
         }
     }
     Stuffuv stuffuv = other.gameObject.GetComponent<Stuffuv>();
     if(stuffuv) {
         KillPlayer();
     }
 }
예제 #13
0
 /// <summary>
 /// Initializes a new instance of the struct.
 /// </summary>
 /// <param name="teleporterArg"></param>
 /// <param name="teleportingObjectArg"></param>
 public TeleportingEvent(TeleporterController teleporterArg,
                         GameObject teleportingObjectArg)
 {
     teleporter        = teleporterArg;
     teleportingObject = teleportingObjectArg;
 }
 /// <summary>
 /// Sets the teleportation destination.
 /// </summary>
 /// <param name="receivingTeleporterArg"></param>
 public void LinkReceivingTeleporter(TeleporterController receivingTeleporterArg)
 {
     receivingTeleporter = receivingTeleporterArg;
 }
예제 #15
0
    // Token: 0x0600376D RID: 14189 RVA: 0x000E2764 File Offset: 0x000E0964
    public static void UpgradeID(int ID)
    {
        bool flag = ID < 0;

        if (flag)
        {
            ID = -ID;
        }
        if (ID >= 100)
        {
            RandomizerBonusSkill.FoundBonusSkill(ID);
            return;
        }
        switch (ID)
        {
        case 0:
            if (!flag)
            {
                Characters.Sein.Mortality.Health.SetAmount((float)(Characters.Sein.Mortality.Health.MaxHealth + 20));
                Randomizer.showHint("Mega Health");
                return;
            }
            break;

        case 1:
            if (!flag)
            {
                Characters.Sein.Energy.SetCurrent(Characters.Sein.Energy.Max + 5f);
                Randomizer.showHint("Mega Energy");
                return;
            }
            break;

        case 2:
            Randomizer.returnToStart();
            Randomizer.showHint("Go Home!");
            return;

        case 20:
            break;

        case 6:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("Attack Upgrade (" + RandomizerBonus.SpiritFlameLevel().ToString() + ")");
                return;
            }
            if (RandomizerBonus.SpiritFlameLevel() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                Randomizer.showHint("Attack Upgrade (" + RandomizerBonus.SpiritFlameLevel().ToString() + ")");
                return;
            }
            break;

        case 8:
            Randomizer.showHint("Explosion Power Upgrade");
            if (!RandomizerBonus.ExplosionPower())
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                return;
            }
            break;

        case 9:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
            }
            else if (Characters.Sein.Inventory.GetRandomizerItem(ID) > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
            }
            if (Characters.Sein.Inventory.GetRandomizerItem(ID) == 1)
            {
                Randomizer.showHint("Spirit Light Efficiency");
            }
            else
            {
                Randomizer.showHint("Spirit Light Efficiency (" + Characters.Sein.Inventory.GetRandomizerItem(ID).ToString() + ")");
            }
            break;

        case 10:
            Randomizer.showHint("Extra Air Dash");
            if (!RandomizerBonus.DoubleAirDash())
            {
                Characters.Sein.Inventory.SetRandomizerItem(ID, 1);
                return;
            }
            break;

        case 11:
            Randomizer.showHint("Charge Dash Efficiency");
            if (!RandomizerBonus.ChargeDashEfficiency())
            {
                Characters.Sein.Inventory.SetRandomizerItem(ID, 1);
                return;
            }
            break;

        case 12:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                if (RandomizerBonus.DoubleJumpUpgrades() == 1)
                {
                    Randomizer.showHint("Extra Double Jump");
                    return;
                }
                Randomizer.showHint("Extra Double Jump (" + RandomizerBonus.DoubleJumpUpgrades().ToString() + ")");
                return;
            }
            else if (RandomizerBonus.DoubleJumpUpgrades() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                if (RandomizerBonus.DoubleJumpUpgrades() == 1)
                {
                    Randomizer.showHint("Extra Double Jump");
                    return;
                }
                Randomizer.showHint("Extra Double Jump (" + RandomizerBonus.DoubleJumpUpgrades().ToString() + ")");
                return;
            }
            break;

        case 13:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("Health Regeneration (" + RandomizerBonus.HealthRegeneration().ToString() + ")");
                return;
            }
            if (RandomizerBonus.HealthRegeneration() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                Randomizer.showHint("Health Regeneration (" + RandomizerBonus.HealthRegeneration().ToString() + ")");
                return;
            }
            break;

        case 15:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("Energy Regeneration (" + RandomizerBonus.EnergyRegeneration().ToString() + ")");
                return;
            }
            if (RandomizerBonus.EnergyRegeneration() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                Randomizer.showHint("Energy Regeneration (" + RandomizerBonus.EnergyRegeneration().ToString() + ")");
                return;
            }
            break;

        case 17:
            if (flag)
            {
                if (RandomizerBonus.WaterVeinShards() > 0)
                {
                    Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                    Randomizer.showHint("*Water Vein Shard (" + RandomizerBonus.WaterVeinShards().ToString() + "/3)*");
                }
            }
            else if (RandomizerBonus.WaterVeinShards() >= 3)
            {
                Randomizer.showHint("*Water Vein Shard (extra)*");
            }
            else
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("*Water Vein Shard (" + RandomizerBonus.WaterVeinShards().ToString() + "/3)*", 300);
                if (Characters.Sein.Inventory.GetRandomizerItem(1024) == 1 && RandomizerBonus.WaterVeinShards() == 2)
                {
                    TeleporterController.Activate(Randomizer.TeleportTable["Ginso"].ToString());
                    Randomizer.MessageQueue.Enqueue("*Ginso teleporter activated*");
                }
            }
            Keys.GinsoTree = (RandomizerBonus.WaterVeinShards() >= 3);
            if (Keys.GinsoTree)
            {
                RandomizerStatsManager.FoundEvent(0);
            }
            return;

        case 19:
            if (flag)
            {
                if (RandomizerBonus.GumonSealShards() > 0)
                {
                    Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                    Randomizer.showHint("#Gumon Seal Shard (" + RandomizerBonus.GumonSealShards().ToString() + "/3)#");
                }
            }
            else if (RandomizerBonus.GumonSealShards() >= 3)
            {
                Randomizer.showHint("#Gumon Seal Shard (extra)#");
            }
            else
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("#Gumon Seal Shard (" + RandomizerBonus.GumonSealShards().ToString() + "/3)#", 300);
                if (Characters.Sein.Inventory.GetRandomizerItem(1025) == 1 && RandomizerBonus.GumonSealShards() == 2)
                {
                    TeleporterController.Activate(Randomizer.TeleportTable["Forlorn"].ToString());
                    Randomizer.MessageQueue.Enqueue("#Forlorn teleporter activated#");
                }
            }
            Keys.ForlornRuins = (RandomizerBonus.GumonSealShards() >= 3);
            if (Keys.ForlornRuins)
            {
                RandomizerStatsManager.FoundEvent(2);
            }
            return;

        case 21:
            if (flag)
            {
                if (RandomizerBonus.SunstoneShards() > 0)
                {
                    Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                    Randomizer.showHint("@Sunstone Shard (" + RandomizerBonus.SunstoneShards().ToString() + "/3)@");
                }
            }
            else if (RandomizerBonus.SunstoneShards() >= 3)
            {
                Randomizer.showHint("@Sunstone Shard (extra)@");
            }
            else
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("@Sunstone Shard (" + RandomizerBonus.SunstoneShards().ToString() + "/3)@", 300);
                if (Characters.Sein.Inventory.GetRandomizerItem(1026) == 1 && RandomizerBonus.SunstoneShards() == 2)
                {
                    TeleporterController.Activate(Randomizer.TeleportTable["Horu"].ToString());
                    Randomizer.MessageQueue.Enqueue("@Horu teleporter activated@");
                }
            }
            Keys.MountHoru = (RandomizerBonus.SunstoneShards() >= 3);
            if (Keys.MountHoru)
            {
                RandomizerStatsManager.FoundEvent(4);
            }
            return;

        case 28:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
            }
            else if (RandomizerBonus.WarmthFrags() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
            }
            if (Randomizer.fragKeyFinish < RandomizerBonus.WarmthFrags())
            {
                Randomizer.showHint("@Warmth Fragment (extra)@", 300);
                return;
            }
            Randomizer.showHint(string.Concat(new object[] { "@Warmth Fragment (", RandomizerBonus.WarmthFrags().ToString(), "/", Randomizer.fragKeyFinish, ")@" }), 300);
            break;

        case 29:
            return;

        case 30:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("Bleeding x" + RandomizerBonus.Bleeding().ToString());
                return;
            }
            if (RandomizerBonus.Bleeding() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                Randomizer.showHint("Bleeding x" + RandomizerBonus.Bleeding().ToString());
                return;
            }
            break;

        case 31:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
            }
            else if (RandomizerBonus.Lifesteal() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
            }
            if (Lifesteal() == 1)
            {
                Randomizer.showHint("Health Drain");
            }
            else
            {
                Randomizer.showHint("Health Drain x" + RandomizerBonus.Lifesteal().ToString());
            }
            break;

        case 32:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
            }
            else if (RandomizerBonus.Manavamp() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
            }
            if (Manavamp() == 1)
            {
                Randomizer.showHint("Energy Drain");
            }
            else
            {
                Randomizer.showHint("Health Drain x" + RandomizerBonus.Manavamp().ToString());
            }
            break;
            break;

        case 33:
            if (!flag)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
                Randomizer.showHint("Skill Velocity Upgrade x" + RandomizerBonus.Velocity().ToString());
                return;
            }
            if (RandomizerBonus.Velocity() > 0)
            {
                Characters.Sein.Inventory.IncRandomizerItem(ID, -1);
                Randomizer.showHint("Skill Velocity Upgrade x" + RandomizerBonus.Velocity().ToString());
                return;
            }
            break;

        case 34:
            Characters.Sein.Inventory.SetRandomizerItem(34, 1);
            Randomizer.showHint("Return to start disabled!");
            break;

        case 35:
            Characters.Sein.Inventory.SetRandomizerItem(34, 0);
            Randomizer.showHint("Return to start enabled!");
            break;

        case 36:
            Randomizer.showHint("Underwater Skill Usage");
            Characters.Sein.Inventory.SetRandomizerItem(36, 1);
            break;

        case 40:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Wall Jump Lost!!@", 240);
            Characters.Sein.PlayerAbilities.WallJump.HasAbility = false;
            return;

        case 41:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@ChargeFlame Lost!!@", 240);
            Characters.Sein.PlayerAbilities.ChargeFlame.HasAbility = false;
            return;

        case 42:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@DoubleJump Lost!!@", 240);
            Characters.Sein.PlayerAbilities.DoubleJump.HasAbility = false;
            return;

        case 43:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Bash Lost!!@", 240);
            Characters.Sein.PlayerAbilities.Bash.HasAbility = false;
            return;

        case 44:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Stomp Lost!!@", 240);
            Characters.Sein.PlayerAbilities.Stomp.HasAbility = false;
            return;

        case 45:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Glide Lost!!@", 240);
            Characters.Sein.PlayerAbilities.Glide.HasAbility = false;
            return;

        case 46:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Climb Lost!!@", 240);
            Characters.Sein.PlayerAbilities.Climb.HasAbility = false;
            return;

        case 47:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Charge Jump Lost!!@", 240);
            Characters.Sein.PlayerAbilities.ChargeJump.HasAbility = false;
            return;

        case 48:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Dash Lost!!@", 240);
            Characters.Sein.PlayerAbilities.Dash.HasAbility = false;
            return;

        case 49:
            if (!Characters.Sein || flag)
            {
                return;
            }
            Randomizer.showHint("@Grenade Lost!!@", 240);
            Characters.Sein.PlayerAbilities.Grenade.HasAbility = false;
            return;

        case 81:
            Characters.Sein.Inventory.IncRandomizerItem(ID, 1);
            string s_color = "";
            string g_color = "";
            if (Characters.Sein.PlayerAbilities.HasAbility(AbilityType.Stomp))
            {
                s_color = "$";
            }
            if (Characters.Sein.PlayerAbilities.HasAbility(AbilityType.Grenade))
            {
                g_color = "$";
            }
            Randomizer.showHint(s_color + "Stomp: " + Randomizer.StompZone + s_color + g_color + "    Grenade: " + Randomizer.GrenadeZone + g_color, 480);
            break;

        default:
            return;
        }
    }