Exemplo n.º 1
0
        public override Item getOne()
        {
            Boots boots = new Boots(indexInTileSheet);

            boots.appliedBootSheetIndex.Value = appliedBootSheetIndex.Value;
            boots.indexInColorSheet.Value     = indexInColorSheet.Value;
            boots.defenseBonus.Value          = defenseBonus.Value;
            boots.immunityBonus.Value         = immunityBonus.Value;
            boots.loadDisplayFields();
            return(boots);
        }
Exemplo n.º 2
0
 public void applyStats(Boots applied_boots)
 {
     reloadData();
     if (defenseBonus.Value == (int)applied_boots.defenseBonus && immunityBonus.Value == (int)applied_boots.immunityBonus)
     {
         appliedBootSheetIndex.Value = -1;
     }
     else
     {
         appliedBootSheetIndex.Value = applied_boots.getStatsIndex();
     }
     defenseBonus.Value  = applied_boots.defenseBonus.Value;
     immunityBonus.Value = applied_boots.immunityBonus.Value;
     price.Value         = applied_boots.price.Value;
     loadDisplayFields();
 }