Compare commits

...

2 commits

Author SHA1 Message Date
99fd791c9f Auto-sync: 20260405_010000 2026-04-05 01:00:01 +02:00
caa8f80cd0 Auto-sync: 20260330_170000 2026-03-30 17:00:01 +02:00
3 changed files with 11 additions and 5 deletions

BIN
.DS_Store vendored

Binary file not shown.

View file

@ -652,7 +652,7 @@ class GameController extends ChangeNotifier {
} else if (isVsCPU) { } else if (isVsCPU) {
int myScore = board.scoreRed; int cpuScore = board.scoreBlue; int myScore = board.scoreRed; int cpuScore = board.scoreBlue;
bool isWin = myScore > cpuScore; bool isWin = myScore > cpuScore;
calculatedXP = isWin ? (10 + (cpuLevel * 2)) : (isDraw ? 5 : 2); calculatedXP = isWin ? (10 + (cpuLevel ~/ 2)).clamp(10, 25) : (isDraw ? 5 : 2);
if (isWin) { if (isWin) {
await StorageService.instance.addWin(); await StorageService.instance.addWin();

View file

@ -74,10 +74,16 @@ class _ProfileScreenState extends State<ProfileScreen> {
} }
String _getPlayerTitle(int level) { String _getPlayerTitle(int level) {
if (level < 5) return "Principiante"; if (level < 10) return "Principiante";
if (level < 10) return "Sfidante"; if (level < 20) return "Apprendista";
if (level < 15) return "Maestro dei Quadrati"; if (level < 40) return "Sfidante";
return "Leggenda del Neon"; if (level < 60) return "Tattico dell'Arena";
if (level < 80) return "Maestro dei Quadrati";
if (level < 100) return "Gran Maestro";
if (level < 130) return "Campione della Griglia";
if (level < 160) return "Entità Digitale";
if (level < 200) return "Oracolo del Codice";
return "Leggenda Suprema";
} }
Future<void> _handleRegistration() async { Future<void> _handleRegistration() async {