Example #1
0
    public static pStat createStats(int[] s)
    {
        pStat stats = new pStat();

        if (s.Length != 7)
        {
            stats.intelligence = 10;
            stats.strength     = 10;
            stats.constitution = 10;
            stats.agility      = 10;
            stats.speed        = 10;
            stats.charisma     = 10;
            stats.wisdom       = 10;
        }
        else
        {
            stats.intelligence = s[0];
            stats.strength     = s[1];
            stats.constitution = s[2];
            stats.agility      = s[3];
            stats.speed        = s[4];
            stats.charisma     = s[5];
            stats.wisdom       = s[6];
        }
        return(stats);
    }
Example #2
0
 public void setEnemyStats(pStat s)
 {
     this.pMob.stats = s;
 }
Example #3
0
 public Enemy(int id, int hp = 0, int spd = 0, Equipment equipped = default(Equipment), pStat stat = default(pStat), mDOMAIN dom = mDOMAIN.NONE, mCLASS c = default(mCLASS), mSEX g = mSEX.MALE)
 {
     this.pMob.enemyId = id;
     this.pMob.health  = hp;
     this.pMob.speed   = spd;
     this.pMob.items   = equipped;
     this.pMob.stats   = stat;
     this.pMob.domain  = dom;
     this.pMob.eClass  = c;
     this.pMob.gender  = g;
 }