Skip to content

Commit

Permalink
Hotfix and update for 42 (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
namelessto authored May 9, 2024
2 parents 15af8e1 + 6ff7e44 commit a5290e0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets
5 changes: 3 additions & 2 deletions lib/models/towers/tower/monkey_paths.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class MonkeyPathsModel {
path3.add(UpgradeInfo.fromJson(path));
});

paragon =
json['paragon'] != null ? UpgradeInfo.fromJson(json['paragon']) : null;
paragon = json['paragon'] is Map && !json['paragon'].isEmpty
? UpgradeInfo.fromJson(json['paragon'])
: null;
}
}
4 changes: 2 additions & 2 deletions lib/presentation/widgets/heroes/hero_stats.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class StatsList extends StatelessWidget {
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
primary: false,
itemCount: dynamicItemValue['value'].length,
itemCount: dynamicItemValue['values'].length,
itemBuilder: (BuildContext context, int index) {
final listData = dynamicItemValue['value'];
final listData = dynamicItemValue['values'];
final dynamicItemValueValue = listData[index];
return ListTile(
title: Text(
Expand Down
2 changes: 1 addition & 1 deletion lib/utilities/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const String kBosses = 'bosses';
const String kMinions = 'minions';
const String kMaps = 'maps';

const int gameVersion = 41;
const int gameVersion = 42;

const int kTowersIndex = 0;
const int kHeroesIndex = 1;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.2.0-41+22
version: 1.2.1-42+23

environment:
sdk: ">=2.18.5 <4.0.0"
Expand Down

0 comments on commit a5290e0

Please sign in to comment.