製作者スレ SRPG Studio 26章at GAMEDEV
製作者スレ SRPG Studio 26章 - 暇つぶし2ch473:名前は開発中のものです。
17/10/21 19:43:00.39 N66EfJVS.net
>>464
武器補正値計算してんのは
BaseUnitParameterのgetUnitTotalParamBonusの中の
d += this.getParameterBonus(weapon);って書いてあるとこ
getParameterBonusの中は武器以外の要素も取り扱う事があるからこの部分を改造するのが最も正しい
手抜き気味だけど
if (weapon !== null) {
d += this.getParameterBonus(weapon);
}
ってところを
if (weapon !== null) {
d += this.getParameterBonus(weapon);
if (weapon.custom.limitCorrectionIndex === this.getParameterType()) {
d += weapon.getLimit();
}
}
っと書き換えて
武器のカスパラに
limitCorrectionIndex: ParamType.POW
って入れてやれば力に耐久力の分だけ補正がかかるようになるかな
素早さあげたければカスパラを
limitCorrectionIndex: ParamType.SPD
にする


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch