diff --git a/lib/views/main_view_tiles.dart b/lib/views/main_view_tiles.dart index a3658b3..8c3a335 100644 --- a/lib/views/main_view_tiles.dart +++ b/lib/views/main_view_tiles.dart @@ -328,7 +328,7 @@ class ClearData{ // } double comboDamage = 0; - + if (rules.combo) { if (combo > 1){ if (lines == 1 && rules.comboTable != ComboTables.multiplier) comboDamage += combotable[rules.comboTable]![max(0, min(combo - 1, combotable[rules.comboTable]!.length - 1))]; @@ -404,6 +404,8 @@ class _DestinationCalculatorState extends State { int idCounter = 0; Rules rules = Rules(); + CalcCards card = CalcCards.calc; + @override void initState() { super.initState(); @@ -750,7 +752,10 @@ class _DestinationCalculatorState extends State { children: [ SizedBox( height: widget.constraints.maxHeight -32, - child: getDamageCalculator(), + child: switch (card){ + CalcCards.calc => getCalculator(), + CalcCards.damage => getDamageCalculator() + } ), SegmentedButton( showSelectedIcon: false, @@ -764,11 +769,10 @@ class _DestinationCalculatorState extends State { label: Text('Damage Calculator'), ), ], - selected: {CalcCards.damage}, + selected: {card}, onSelectionChanged: (Set newSelection) { setState(() { - // cardMod = CardMod.info; - // rightCard = newSelection.first; + card = newSelection.first; });}) ], );