Example #1
0
 private void Sight_ValueChanged(object sender, EventArgs e)
 {
     Intelligence.findIntel(Main.FlashVec[1]).stat[1] = (int)Sight.Value;
 }
Example #2
0
        private void UpdateI()
        {
            Intelligence Curr = Intelligence.findIntel(Main.FlashVec[1]);

            if (!Curr.Equals(Main.potato))
            {
                Lobotomy.Enabled = false;

                Smell.Enabled   = true;
                Sight.Enabled   = true;
                Hearing.Enabled = true;
                Speed.Enabled   = true;
                Energy.Enabled  = true;
                Health.Enabled  = true;
                Hunger.Enabled  = true;
                Thirst.Enabled  = true;

                label50.Enabled = true;
                label51.Enabled = true;
                label52.Enabled = true;
                label53.Enabled = true;
                label55.Enabled = true;
                label56.Enabled = true;
                label57.Enabled = true;
                label58.Enabled = true;

                Smell.Value   = Curr.stat[0];
                Sight.Value   = Curr.stat[1];
                Hearing.Value = Curr.stat[2];
                Speed.Value   = Curr.stat[3];
                Energy.Value  = Curr.stat[4];
                Health.Value  = Curr.stat[5];
                Hunger.Value  = Curr.stat[6];
                Thirst.Value  = Curr.stat[7];
            }
            else
            {
                Lobotomy.Enabled = true;

                Smell.Enabled   = false;
                Sight.Enabled   = false;
                Hearing.Enabled = false;
                Speed.Enabled   = false;
                Energy.Enabled  = false;
                Health.Enabled  = false;
                Hunger.Enabled  = false;
                Thirst.Enabled  = false;

                label50.Enabled = false;
                label51.Enabled = false;
                label52.Enabled = false;
                label53.Enabled = false;
                label55.Enabled = false;
                label56.Enabled = false;
                label57.Enabled = false;
                label58.Enabled = false;

                Smell.Value   = 0;
                Sight.Value   = 0;
                Hearing.Value = 0;
                Speed.Value   = 0;
                Energy.Value  = 0;
                Health.Value  = 0;
                Hunger.Value  = 0;
                Thirst.Value  = 0;
            }
        }
 private void Energy_ValueChanged(object sender, EventArgs e)
 {
     Intelligence.findIntel(Main.FlashVec[1]).stat[5] = (int)Energy.Value;
 }
 private void Hunger_ValueChanged(object sender, EventArgs e)
 {
     Intelligence.findIntel(Main.FlashVec[1]).stat[6] = (int)Hunger.Value;
 }
 private void Health_ValueChanged(object sender, EventArgs e)
 {
     Intelligence.findIntel(Main.FlashVec[1]).stat[4] = (int)Health.Value;
 }