Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix and update for 42 #64

Merged
merged 3 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading