Constructor
new MyGameItem(name, attackMin, attackMax, attackCount, stock)
Parameters:
| Name | Type | Description | 
|---|---|---|
| name | string | 名前。 | 
| attackMin | number | ダメージ最小値。 | 
| attackMax | number | ダメージ最大値。 | 
| attackCount | number | 攻撃回数。 | 
| stock | number | 所持数。 null で無限に使用できる。 | 
- Source:
Methods
calcAttackBonus() → {number}
    この武器で攻撃した場合の 1 回あたりのダメージを計算する。
- Source:
Returns:
- Type
- number
checkCount() → {boolean}
    この武器がまだ使えるかどうか。
- Source:
Returns:
    使えるなら true 。
- Type
- boolean
getString() → {string}
    この武器の文字列での表現を得る。
- Source:
Returns:
- Type
- string
use()
    この武器を使い、所持数を減らす。0 未満にはしない。 this.stock が null なら何もしない。
- Source: