Example #1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public Armor(ArmorShape shape, ItemMaterial material, float quality)
 {
     CLASSIFICATION_CODE = shape.getId() + material.getId();
     BASE_DEF            = shape.getDef();
     BASE_VALUE          = shape.getItemValue() + material.getItemValue();
     DELAY_DISTURB_MAG   = shape.getDelayDisturbMag();
     DODGE_DISTURB_MAG   = shape.getDodgeDisturbMag();
     MAGIC_DISTURB_MAG   = shape.getMagicDisturbMag();
     this.quality        = quality;
     CONSUMABILITY       = material.getConsumability();
     NAME        = material.getName() + "の" + shape.getName();
     DESCRIPTION = material.getAdditionalDescription() + shape.getAdditionalDescription();
     FLAVOR_TEXT = material.getAdditionalFlavor() + shape.getAdditionalFlavor();
     MASS        = shape.getMass() + material.getMass();
     HEAVINESS   = material.getHeaviness();
 }
Example #2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public Weapon(WeaponShape shape, ItemMaterial material, float quality)
 {
     CLASSIFICATION_CODE = shape.getId() + material.getId();
     BASE_ATTACK         = shape.getAttack();
     RANGE          = shape.getRange();
     BASE_VALUE     = material.getItemValue() + shape.getValue();
     MASS           = shape.getMass() + material.getMass();
     BASE_HIT       = shape.getHit();
     NAME           = material.getName() + "の" + shape.getName();
     BASE_DELAY     = shape.getDelay();
     TYPE           = shape.getWeaponType();
     CONSUMABILITY  = material.getConsumability();
     this.quality   = quality;
     DESCRIPTION    = material.getAdditionalDescription() + shape.getAdditionalDescription();
     FLAVOR_TEXT    = material.getAdditionalFlavor() + shape.getAdditionalFlavor();
     WEAPON_ABILITY = WeaponTypeHelper.getTypeAbility(TYPE);
 }