Exemple #1
0
        public InitiativeEntry(IMob ms, removeDelegate rem)
        {
            IStats stats = (IStats)ms.getComponent(typeof(IStats));

            InitializeComponent();
            EntryName.Text   = ms.Name;
            EntryNumber.Text = ms.Number.ToString();
            int initiative = MobRollHelper.roll(1, 20) + Convert.ToInt32(Math.Floor((stats.Dexterity - 10.0) / 2.0));

            EntryInitiative.Text = initiative.ToString();
            remDel = rem;
        }
Exemple #2
0
 private void MobCreationBtnCallback(object sender, EventArgs e)
 {
     try {
         Button           b  = (Button)sender;
         IMob             ms = MobRollHelper.getMob(b.Text);
         IMobDisplayBlock me = new MobEntry(ms)
         {
             BackColor = StatBackColour, ForeColor = StatForeColour, Parent = MobPanelDock
         };
         mobPanels.Add(me);
     } finally { }
 }
Exemple #3
0
        public AshWorm() : base()
        {
            Name = "Ash Worm";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 45 + MobRollHelper.roll(2, 10);
            s.Dexterity    = 45 + MobRollHelper.roll(2, 6);
            s.Intelligence = 25 + MobRollHelper.roll(1, 4);
            s.Wisdom       = 20 + MobRollHelper.roll(1, 4);
            s.Constitution = 30 + MobRollHelper.roll(2, 4);
            s.Charisma     = 16 + MobRollHelper.roll(1, 4);
            s.Speed        = 40;
            s.AC           = 23 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, NumHPDice);
        }
        public UnyeildingRoach() : base()
        {
            Name = "Unyielding Roach";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 4 + MobRollHelper.roll(2, 4);
            s.Dexterity    = 2 + MobRollHelper.roll(1, 6);
            s.Intelligence = 4 + MobRollHelper.roll(1, 4) / 2;
            s.Wisdom       = 4 + MobRollHelper.roll(1, 4) / 2;
            s.Constitution = 2 + MobRollHelper.roll(2, 4);
            s.Charisma     = MobRollHelper.roll(1, 4) - 4;
            s.Speed        = 30;
            s.AC           = 20 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, NumHPDice);
        }
Exemple #5
0
        public DeathBeetle() : base()
        {
            Name = "Death beetle";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 2 + MobRollHelper.roll(4, 5);
            s.Dexterity    = 4 + MobRollHelper.roll(1, 6);
            s.Intelligence = 15;
            s.Wisdom       = 15;
            s.Constitution = 8 + MobRollHelper.roll(2, 4);
            s.Charisma     = MobRollHelper.roll(1, 4) - 5;
            s.Speed        = 30;
            s.AC           = 10 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, NumHPDice);
        }
Exemple #6
0
        public WingedBear() : base()
        {
            Name = "Winged Bear";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 16 + MobRollHelper.roll(2, 3);
            s.Dexterity    = 8 + MobRollHelper.roll(2, 4);
            s.Intelligence = 4 + MobRollHelper.roll(1, 4) / 2;
            s.Wisdom       = 4 + MobRollHelper.roll(1, 4) / 2;
            s.Constitution = 8 + MobRollHelper.roll(1, 4);
            s.Charisma     = MobRollHelper.roll(1, 6);
            s.Speed        = 30;
            s.AC           = 15 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, NumHPDice);
        }
Exemple #7
0
        public Thug()
        {
            Components = ImmutableHashSet.Create <IComponent>(new MobStats());
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 15;
            s.Dexterity    = 11;
            s.Intelligence = 10;
            s.Wisdom       = 10;
            s.Constitution = 14;
            s.Charisma     = 11;
            s.Speed        = 30;
            s.HP           = MobRollHelper.roll(5, 8) + 10;
            s.AC           = 11;
        }
Exemple #8
0
        public ToweringTortoise() : base()
        {
            Name = "Towering Tortoise";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 40 + MobRollHelper.roll(5, 5);
            s.Dexterity    = 10;
            s.Intelligence = 35 + MobRollHelper.roll(2, 8) / 2;
            s.Wisdom       = 20 + MobRollHelper.roll(2, 4) / 2;
            s.Constitution = 8 + MobRollHelper.roll(4, 4);
            s.Charisma     = MobRollHelper.roll(8, 4);
            s.Speed        = 20;
            s.AC           = 40 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, NumHPDice);
        }
        public DreamBlueButterfly() : base()
        {
            Name = "Dream Blue Butterfly";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 12 + MobRollHelper.roll(1, 4);
            s.Dexterity    = 18 + MobRollHelper.roll(2, 4);
            s.Intelligence = 16 + MobRollHelper.roll(2, 4);
            s.Wisdom       = 16 + MobRollHelper.roll(2, 4);
            s.Constitution = 16 + MobRollHelper.roll(1, 4);
            s.Charisma     = 16 + MobRollHelper.roll(1, 4);
            s.Speed        = 40;
            s.AC           = 12 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, 1);
        }
Exemple #10
0
        public Cockatrice() : base()
        {
            Name = "Cockatrice";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 4 + MobRollHelper.roll(1, 6);
            s.Dexterity    = 8 + MobRollHelper.roll(1, 6);
            s.Intelligence = MobRollHelper.roll(1, 4);
            s.Wisdom       = 10 + MobRollHelper.roll(1, 6);
            s.Constitution = 10 + MobRollHelper.roll(1, 4);
            s.Charisma     = 2 + MobRollHelper.roll(1, 4);
            s.Speed        = 30;
            s.AC           = 10 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, 1);
        }
Exemple #11
0
        public ShadowPanther() : base()
        {
            Name = "Shadow Panther";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 12 + MobRollHelper.roll(3, 4);
            s.Dexterity    = 15 + MobRollHelper.roll(2, 6);
            s.Intelligence = 2 + MobRollHelper.roll(1, 8);
            s.Wisdom       = 8 + MobRollHelper.roll(2, 4);
            s.Constitution = 14 + MobRollHelper.roll(1, 4);
            s.Charisma     = 4 + MobRollHelper.roll(1, 6);
            s.Speed        = 40;
            s.AC           = 11 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, 1);
        }
Exemple #12
0
        public NightmareCrow() : base()
        {
            Name = "Nightmare Crow";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 10 + MobRollHelper.roll(1, 4) / 2;
            s.Dexterity    = 10 + MobRollHelper.roll(2, 4);
            s.Intelligence = 4 + MobRollHelper.roll(1, 4) / 2;
            s.Wisdom       = 4 + MobRollHelper.roll(1, 4) / 2;
            s.Constitution = 6 + MobRollHelper.roll(1, 4);
            s.Charisma     = 1 + MobRollHelper.roll(1, 4);
            s.Speed        = 30;
            s.AC           = 12 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, 1);
        }
Exemple #13
0
        public ThreeHornedWolf() : base()
        {
            Name = "Three-Horned Wolf";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 6 + MobRollHelper.roll(2, 4);
            s.Dexterity    = 15 + MobRollHelper.roll(2, 6);
            s.Intelligence = 4 + MobRollHelper.roll(1, 4);
            s.Wisdom       = 6 + MobRollHelper.roll(2, 4);
            s.Constitution = 10 + MobRollHelper.roll(1, 6);
            s.Charisma     = 2 + MobRollHelper.roll(1, 4);
            s.Speed        = 40;
            s.AC           = 10 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, 1);
        }
Exemple #14
0
        public SandStalker() : base()
        {
            Name = "Sand Stalker";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 12 + MobRollHelper.roll(4, 6);
            s.Dexterity    = 15 + MobRollHelper.roll(3, 8);
            s.Intelligence = 4 + MobRollHelper.roll(1, 4);
            s.Wisdom       = 10 + MobRollHelper.roll(3, 4);
            s.Constitution = 14 + MobRollHelper.roll(5, 4);
            s.Charisma     = MobRollHelper.roll(3, 4);
            s.Speed        = 30;
            s.AC           = 12 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, 2);
        }
Exemple #15
0
        public VibrantMagpie() : base()
        {
            Name = "Vibrant Magpie";
            IStats s = (IStats)getComponent(typeof(IStats));

            s.Strength     = 10 + MobRollHelper.roll(2, 4);
            s.Dexterity    = 10 + MobRollHelper.roll(2, 6);
            s.Intelligence = 4 + MobRollHelper.roll(1, 4) / 2;
            s.Wisdom       = 2 + MobRollHelper.roll(1, 4) / 2;
            s.Constitution = 6 + MobRollHelper.roll(2, 4);
            s.Charisma     = MobRollHelper.roll(1, 6);
            s.Speed        = 40;
            s.AC           = 14 + Convert.ToInt32(Math.Floor((s.Dexterity - 10.0) / 2.0));
            s.HP           = MobRollHelper.addHp(this, startHP, HPDice, NumHPDice);
        }
Exemple #16
0
 private void IntRoll_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Roll result: " + (MobRollHelper.roll(1, 20) + Math.Floor((s.Intelligence - 10.0) / 2.0)));
 }
Exemple #17
0
 private void ChaRoll_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Roll result: " + (MobRollHelper.roll(1, 20) + Math.Floor((s.Charisma - 10.0) / 2.0)));
 }