From e6052fed7e186a56c98459f7555fc289d0d1c002 Mon Sep 17 00:00:00 2001 From: alestiago Date: Wed, 27 Apr 2022 15:34:28 +0100 Subject: [PATCH] refactor: renamed hasBonus to achievedBonus --- .../behaviors/flutter_forest_bonus_behavior.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior.dart b/lib/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior.dart index 8bf41bc9..949fead1 100644 --- a/lib/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior.dart +++ b/lib/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior.dart @@ -17,11 +17,11 @@ class FlutterForestBonusBehavior extends Component // merged: // https://github.com/flame-engine/flame/pull/1538 bumper.bloc.stream.listen((state) { - final hasBonus = bumpers.every( + final achievedBonus = bumpers.every( (bumper) => bumper.bloc.state == DashNestBumperState.active, ); - if (hasBonus) { + if (achievedBonus) { gameRef .read() .add(const BonusActivated(GameBonus.dashNest));