Skip to content

Commit

Permalink
show instant death formula
Browse files Browse the repository at this point in the history
  • Loading branch information
narumi147 committed Aug 17, 2024
1 parent 6992f68 commit 7612a5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions lib/app/modules/battle/simulation/recorder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1723,18 +1723,20 @@ class InstantDeathParamDialog extends StatelessWidget with _ParamDialogMixin {

@override
Widget build(BuildContext context) {
final enemyDeathRate = params.deathRate.format(percent: true, precision: 3, base: 10);
final funcRate = params.functionRate.format(percent: true, precision: 3, base: 10);
final upDeathRate = params.buffRate.format(percent: true, precision: 3, base: 10);
return buildDialog(
context: context,
title: S.current.instant_death_params,
wrapDialog: wrapDialog,
children: [
buildCardInfo(context, info),
oneParam('[${S.current.target}]${S.current.info_death_rate}',
params.deathRate.format(percent: true, precision: 3, base: 10)),
oneParam(S.current.death_effect_rate, params.functionRate.format(percent: true, precision: 3, base: 10)),
oneParam(Transl.buffNames('即死付与率アップ').l, params.buffRate.format(percent: true, precision: 3, base: 10),
buffIcon(337)),
oneParam('[${S.current.target}]${S.current.info_death_rate}', enemyDeathRate),
oneParam(S.current.death_effect_rate, funcRate),
oneParam(Transl.buffNames('即死付与率アップ').l, upDeathRate, buffIcon(337)),
DividerWithTitle(title: S.current.results, height: 12),
oneParam('', '$enemyDeathRate×$funcRate×(1+$upDeathRate)'),
oneParam(S.current.death_chance, params.activateRate.format(percent: true, precision: 3, base: 10)),
oneParam(
'',
Expand Down
4 changes: 2 additions & 2 deletions lib/app/modules/quest/quest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class _QuestDetailPageState extends State<QuestDetailPage> {
if (phase > 0) initHash = (phase, widget.enemyHash);
} else if (_quest!.isAnyFree && _quest!.phases.isNotEmpty) {
phase = _quest!.phases.last;
} else if (_quest!.phases.length > 3) {
phase = _quest!.phases.first;
// } else if (_quest!.phases.length > 3) {
// phase = _quest!.phases.first;
}
}
_resolveQuest();
Expand Down

0 comments on commit 7612a5a

Please sign in to comment.