add skin manager
This commit is contained in:
+12
-12
@@ -82,27 +82,27 @@ const ResultScene = {
|
||||
*/
|
||||
_calculateGoldReward() {
|
||||
const stats = this._stats;
|
||||
let gold = 50; // Base reward per requirements
|
||||
let gold = 30; // Base reward (reduced from 50)
|
||||
|
||||
// Bonus per kill type
|
||||
gold += (stats.kills.normal || 0) * 5;
|
||||
gold += (stats.kills.fast || 0) * 10;
|
||||
gold += (stats.kills.armor || 0) * 15;
|
||||
gold += (stats.kills.boss || 0) * 25;
|
||||
// Bonus per kill type (reduced)
|
||||
gold += (stats.kills.normal || 0) * 3;
|
||||
gold += (stats.kills.fast || 0) * 5;
|
||||
gold += (stats.kills.armor || 0) * 8;
|
||||
gold += (stats.kills.boss || 0) * 15;
|
||||
|
||||
// Victory bonus
|
||||
// Victory bonus (reduced from 50)
|
||||
if (this._victory) {
|
||||
gold += 50;
|
||||
gold += 30;
|
||||
}
|
||||
|
||||
// Time bonus (faster = more gold, max 30 gold for under 60s)
|
||||
// Time bonus (faster = more gold, max 20 gold for under 60s, reduced from 30)
|
||||
if (this._victory && stats.timeElapsed < 300) {
|
||||
gold += Math.max(0, Math.floor((300 - stats.timeElapsed) / 10));
|
||||
gold += Math.max(0, Math.floor((300 - stats.timeElapsed) / 15));
|
||||
}
|
||||
|
||||
// Base alive bonus
|
||||
// Base alive bonus (reduced from 20)
|
||||
if (stats.baseAlive) {
|
||||
gold += 20;
|
||||
gold += 10;
|
||||
}
|
||||
|
||||
return gold;
|
||||
|
||||
Reference in New Issue
Block a user