Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
fix: remove damageTypes key
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein committed Jul 24, 2021
1 parent 59a0326 commit 8e4985a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
9 changes: 2 additions & 7 deletions lib/src/entities/warframe_items/weapons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WeaponItem extends FoundryItem {
required dynamic damage,
required this.totalDamage,
required this.damagePerShot,
this.damageTypes,
// this.damageTypes,
this.disposition,
this.marketCost,
this.sentinel,
Expand Down Expand Up @@ -71,7 +71,7 @@ class WeaponItem extends FoundryItem {
final dynamic _damage;
final double totalDamage;
final List<double> damagePerShot;
final Map<String, num>? damageTypes;
// final Map<String, num>? damageTypes;
final List<String>? polarities;
final int? marketCost;
final int? disposition;
Expand Down Expand Up @@ -102,7 +102,6 @@ class WeaponItem extends FoundryItem {
_damage,
damage,
damagePerShot,
damageTypes,
polarities,
marketCost,
disposition,
Expand Down Expand Up @@ -136,7 +135,6 @@ class ProjectileWeapon extends WeaponItem {
required dynamic damage,
required double totalDamage,
required List<double> damagePerShot,
Map<String, num>? damageTypes,
List<String>? polarities,
int? disposition,
int? marketCost,
Expand Down Expand Up @@ -177,7 +175,6 @@ class ProjectileWeapon extends WeaponItem {
damage: damage,
totalDamage: totalDamage,
damagePerShot: damagePerShot,
damageTypes: damageTypes,
polarities: polarities,
marketCost: marketCost,
disposition: disposition,
Expand Down Expand Up @@ -254,7 +251,6 @@ class MeleeWeapon extends WeaponItem {
required dynamic damage,
required double totalDamage,
required List<double> damagePerShot,
Map<String, num>? damageTypes,
List<String>? polarities,
int? disposition,
int? marketCost,
Expand Down Expand Up @@ -296,7 +292,6 @@ class MeleeWeapon extends WeaponItem {
damage: damage,
totalDamage: totalDamage,
damagePerShot: damagePerShot,
damageTypes: damageTypes,
polarities: polarities,
marketCost: marketCost,
disposition: disposition,
Expand Down
4 changes: 0 additions & 4 deletions lib/src/models/warframe_items/weapon_models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class ProjectileWeaponModel extends ProjectileWeapon {
int? buildQuantity,
bool? consumeOnBuild,
this.components,
required Map<String, num> damageTypes,
List<String>? polarities,
int? marketCost,
bool? vaulted,
Expand Down Expand Up @@ -83,7 +82,6 @@ class ProjectileWeaponModel extends ProjectileWeapon {
skipBuildTimePrice: skipBuildTimePrice,
buildQuantity: buildQuantity,
consumeOnBuild: consumeOnBuild,
damageTypes: damageTypes,
polarities: polarities,
marketCost: marketCost,
vaulted: vaulted,
Expand Down Expand Up @@ -138,7 +136,6 @@ class MeleeWeaponModel extends MeleeWeapon {
required dynamic damage,
required double totalDamage,
required List<double> damagePerShot,
Map<String, num>? damageTypes,
List<String>? polarities,
dynamic marketCost,
int? disposition,
Expand Down Expand Up @@ -180,7 +177,6 @@ class MeleeWeaponModel extends MeleeWeapon {
damage: damage,
totalDamage: totalDamage,
damagePerShot: damagePerShot,
damageTypes: damageTypes,
polarities: polarities,
marketCost: marketCost is String ? 0 : marketCost as int?,
disposition: disposition,
Expand Down
10 changes: 0 additions & 10 deletions lib/src/models/warframe_items/weapon_models.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e4985a

Please sign in to comment.