東方虹龍洞 体験版で、法力経典を装備したときに発生するリプレイずれを修正するパッチです。
This is a bug fix patch for TH18 trial(Unconnected Marketeers), which corrects replay desynchronization when using byakuren's scroll(法力経典).
SpoilerALで th18_desync_fix.ssg を指定してください。
Run Spoiler AL with th18_desync_fix.ssg.
法力経典のクールタイムの効果がリプレイ時に反映されてない。
Cool time reduction effect doesn't work in replay.
(誰か英訳して)
クールタイムの初期値は以下のように計算される。
item_specific_initial_cool_time * cool_time_ratio
item_specific_initial_cool_timeはアイテムごとに決まっているクールタイムcool_time_ratioは補正の係数。通常は1.0、法力経典を装備している場合は0.8
cool_time_ratio は変数としてアドレス0DA1CB60に保存されているが、この変数の初期化の仕方が実際のプレイ時とリプレイ再生時で異なる。
| 実行順 | EIP | 実行後のcool_time_ratioの値 |
|---|---|---|
| 1 | 004389DF | 1.0 |
| 2 | 0040AFE9 | 0.8 |
| 実行順 | EIP | 実行後のcool_time_ratioの値 |
|---|---|---|
| 1 | 004389DF | 1.0 |
| 2 | 0040AFE9 | 0.8 |
| 3 | 00408436 | 1.0 |
リプレイ時には00408436の命令が実行された結果、法力経典によるcool_time_ratioの変更が戻されている。
これによりクールタイムが変わってしまう。
th18_desync_fix.ssg では 00408436 でのcool_time_ratioの上書きをスキップすることでリプレイずれを修正している。
th18_desync_fix.ssg fixes replay desynchronization, skipping instruction at 00408436 to avoid cool_time_ratio overwrite.