Exemplo n.º 1
0
        public static sysTreeCombatStat SeedTreeData(IList <sysBaseCombatStat> stats)
        {
            sysTreeCombatStat stRoot, stCombat, stLevel;

            stRoot   = new sysTreeCombatStat(nwdbConst.sysTreeNameStatistic, -1);
            stCombat = new sysTreeCombatStat("Combat", -1);
            stLevel  = new sysTreeCombatStat("Level Based", -1);



            stats.Add(new sysBaseCombatStat("HP", "Hit Points", -10, 4000000, 10, stCombat));
            stats.Add(new sysBaseCombatStat("AC", "Armour Class", -10, 10, 10, stCombat));
            stats.Add(new sysBaseCombatStat("ACB", "Armour Class - Back", -10, 10, 10, stCombat));
            stats.Add(new sysBaseCombatStat("ACT", "Armour Class - Touch", -10, 10, 10, stCombat));
            stats.Add(new sysBaseCombatStat("THACO", "To Hit AC 10", 0, 20, 20, stCombat));
            stats.Add(new sysBaseCombatStat("THB", "To Hit Bonus", -10, 50, 0, stCombat));
            stats.Add(new sysBaseCombatStat("DB", "Damage Bonus", -10, 50, 10, stCombat));
            stats.Add(new sysBaseCombatStat("INIT", "Initiative", -10, 10, 10, stCombat));
            stats.Add(new sysBaseCombatStat("WEIGHT", "Weight", 0, 5000, 0, stCombat));
            stats.Add(new sysBaseCombatStat("SUP", "Surprised Percentage", 0, 100, 17, stCombat));
            stats.Add(new sysBaseCombatStat("ATKS", "Attacks per Round", 0, 100, 17, stCombat));
            stats.Add(new sysBaseCombatStat("SPELLS", "Spells per Round", 0, 100, 17, stCombat));

            //Add Level based
            stats.Add(new sysBaseCombatStat("HITDIE", "Hit Die", 0, 500, 0, stLevel));
            stats.Add(new sysBaseCombatStat("CL", "Casting Level", 0, 500, 0, stLevel));
            stats.Add(new sysBaseCombatStat("LVL", "Level", 0, 500, 0, stLevel));


            stRoot.AddChild(stCombat);
            return(stRoot);
        }
Exemplo n.º 2
0
 public sysBaseCombatStat(string n, string nl, int vmin, int vmax, int vdefault, sysTreeCombatStat sg)
     : this(n, nl, sg)
 {
     this.min      = vmin;
     this.max      = vmax;
     this.defvalue = vdefault;
     bUseShort     = true;
 }
Exemplo n.º 3
0
 public sysBaseCombatStat(string n, string nl, sysTreeCombatStat stc)
     : this(n, nl)
 {
     this.StatisticGroup = stc;
     stc.CombatStats.Add(this);
 }