예제 #1
0
        //        if (this.Abilitywindow.Throws==true)
        //        {
        //            int ThrowStr;
        //            int ThrowDex;
        //            int ThrowCon;
        //            int ThrowInt;
        //            int ThrowWis;
        //            int ThrowChar;

        //            if (this.Abilitywindow.ThrowStr!=-10)
        //            {
        //                ThrowStr = this.Abilitywindow.ThrowStr;
        //            }
        //            else
        //            {
        //                ThrowStr = (int)Math.Floor((Str - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowDex != -10)
        //            {
        //                ThrowDex = this.Abilitywindow.ThrowDex;
        //            }
        //            else
        //            {
        //                ThrowDex = (int)Math.Floor((Dex - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowCon != -10)
        //            {
        //                ThrowCon = this.Abilitywindow.ThrowCon;
        //            }
        //            else
        //            {
        //                ThrowCon = (int)Math.Floor((Con - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowInt != -10)
        //            {
        //                ThrowInt = this.Abilitywindow.ThrowInt;
        //            }
        //            else
        //            {
        //                ThrowInt = (int)Math.Floor((Int - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowWis != -10)
        //            {
        //                ThrowWis = this.Abilitywindow.ThrowWis;
        //            }
        //            else
        //            {
        //                ThrowWis = (int)Math.Floor((Wis - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowChar != -10)
        //            {
        //                ThrowChar = this.Abilitywindow.ThrowChar;
        //            }
        //            else
        //            {
        //                ThrowChar = (int)Math.Floor((Char - 10) / 2.0);
        //            }

        //            newCreature.AddThrow(ThrowStr, ThrowDex, ThrowCon, ThrowInt, ThrowWis, ThrowChar);
        //        }

        //        newCreature.AddCR(CRwindow.challenge, CRwindow.experience);

        //        CombatLog.Rows.Add(newCreature.ReturnArray());

        //        newCreature.AddAbility(AllAbility);

        //        newCreature.AddActions(AllActions);

        //        newCreature.EnterDatabase();
        //    }

        //    this.Close();
        //}

        public void CRClick(object sender, System.EventArgs e)
        {
            // Add event handler code here.
            CRwindow = new CRForm(ref Experience, ref Challenge);


            CRwindow.Show();
        }
예제 #2
0
        public void AddCRClick(object sender, System.EventArgs e)
        {
            CRwindow = new CRForm(ref Experience, ref Challenge);

            CRwindow.Show();
        }
예제 #3
0
        public void AddCRClick(object sender, System.EventArgs e)
        {
            CRwindow = new CRForm(ref Experience, ref Challenge);

            CRwindow.Show();
        }
예제 #4
0
        //        if (this.Abilitywindow.Throws==true)
        //        {
        //            int ThrowStr;
        //            int ThrowDex;
        //            int ThrowCon;
        //            int ThrowInt;
        //            int ThrowWis;
        //            int ThrowChar;

        //            if (this.Abilitywindow.ThrowStr!=-10)
        //            {
        //                ThrowStr = this.Abilitywindow.ThrowStr;
        //            }
        //            else
        //            {
        //                ThrowStr = (int)Math.Floor((Str - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowDex != -10)
        //            {
        //                ThrowDex = this.Abilitywindow.ThrowDex;
        //            }
        //            else
        //            {
        //                ThrowDex = (int)Math.Floor((Dex - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowCon != -10)
        //            {
        //                ThrowCon = this.Abilitywindow.ThrowCon;
        //            }
        //            else
        //            {
        //                ThrowCon = (int)Math.Floor((Con - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowInt != -10)
        //            {
        //                ThrowInt = this.Abilitywindow.ThrowInt;
        //            }
        //            else
        //            {
        //                ThrowInt = (int)Math.Floor((Int - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowWis != -10)
        //            {
        //                ThrowWis = this.Abilitywindow.ThrowWis;
        //            }
        //            else
        //            {
        //                ThrowWis = (int)Math.Floor((Wis - 10) / 2.0);
        //            }

        //            if (this.Abilitywindow.ThrowChar != -10)
        //            {
        //                ThrowChar = this.Abilitywindow.ThrowChar;
        //            }
        //            else
        //            {
        //                ThrowChar = (int)Math.Floor((Char - 10) / 2.0);
        //            }

        //            newCreature.AddThrow(ThrowStr, ThrowDex, ThrowCon, ThrowInt, ThrowWis, ThrowChar);
        //        }

        //        newCreature.AddCR(CRwindow.challenge, CRwindow.experience);

        //        CombatLog.Rows.Add(newCreature.ReturnArray());

        //        newCreature.AddAbility(AllAbility);

        //        newCreature.AddActions(AllActions);

        //        newCreature.EnterDatabase();
        //    }

        //    this.Close();
        //}

        public void CRClick(object sender, System.EventArgs e)
        {
            // Add event handler code here.
            CRwindow = new CRForm(ref Experience, ref Challenge);


            CRwindow.Show();
        }