cd D:\shadowed-realms-mobile\ShadowedRealmsMobile # Check current status git status # Add all the new and modified files git add . # Or add specific files if you prefer: # git add src/server/ShadowedRealms.API/Services/CombatCalculationEngine.cs # git add src/server/ShadowedRealms.API/Services/CombatService.cs # git add src/server/ShadowedRealms.API/appsettings.json # Commit with descriptive message git commit -m "feat: Integrate CombatCalculationEngine with complete statistical combat system - Add CombatCalculationEngine.cs with configurable combat balance - Update CombatService.cs to use CombatCalculationEngine for battle resolution - Preserve all existing systems: field interception, march mechanics, dragon integration - Add rally system support (Standard 6-person + Mega unlimited) - Implement hospital cascade system (Personal → Alliance → Sanctum → Death) - Add tier-based casualty priority (higher tiers die last) - Include VIP 10 and Subscription bonuses for hospital capacity - Add combat configuration to appsettings.json with T1-T15 tier multipliers - Maintain anti-pay-to-win balance with skill-based alternatives - Ready for dependency injection and testing
118 lines
2.9 KiB
JSON
118 lines
2.9 KiB
JSON
{
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "Host=postgres-vm-host;Database=ShadowedRealms;Username=gameserver;Password=REPLACE_IN_DOCKER",
|
|
"Redis": "redis-vm-host:6379"
|
|
},
|
|
"JWT": {
|
|
"SecretKey": "REPLACE_WITH_ENV_VARIABLE",
|
|
"Issuer": "ShadowedRealms.API",
|
|
"Audience": "ShadowedRealms.Players",
|
|
"ExpiresInMinutes": 60
|
|
},
|
|
"AllowedOrigins": [
|
|
"https://shadowedrealms.game",
|
|
"https://admin.shadowedrealms.game"
|
|
],
|
|
"GameSettings": {
|
|
"MaxPlayersPerKingdom": 1500,
|
|
"KingdomTaxRate": 0.04,
|
|
"MaxAlliancesPerKingdom": 50,
|
|
"FieldInterceptionEnabled": true,
|
|
"CoalitionSystemEnabled": true
|
|
},
|
|
"Combat": {
|
|
"RngVariancePercentage": 0.15,
|
|
"CriticalEventChance": 0.02,
|
|
"DragonSkillActivationChance": 0.15,
|
|
|
|
"Hospital": {
|
|
"BaseWoundedPercentage": 0.70,
|
|
"BaseKilledPercentage": 0.30,
|
|
"SanctumBasePercentage": 0.70,
|
|
"SanctumVipBonus": 0.10,
|
|
"SanctumSubscriptionBonus": 0.10,
|
|
"SanctumCapacityMultiplier": 4.0
|
|
},
|
|
|
|
"TroopTiers": {
|
|
"T1Multiplier": 1.0,
|
|
"T2Multiplier": 1.5,
|
|
"T3Multiplier": 2.25,
|
|
"T4Multiplier": 3.4,
|
|
"T5Multiplier": 5.0,
|
|
"T6Multiplier": 7.5,
|
|
"T7Multiplier": 11.25,
|
|
"T8Multiplier": 16.9,
|
|
"T9Multiplier": 25.3,
|
|
"T10Multiplier": 38.0,
|
|
"T11Multiplier": 57.0,
|
|
"T12Multiplier": 85.5,
|
|
"T13Multiplier": 128.2,
|
|
"T14Multiplier": 192.3,
|
|
"T15Multiplier": 288.5
|
|
},
|
|
|
|
"TroopStats": {
|
|
"Infantry": {
|
|
"BaseAttack": 100,
|
|
"BaseDefense": 120,
|
|
"BaseHealth": 150
|
|
},
|
|
"Cavalry": {
|
|
"BaseAttack": 130,
|
|
"BaseDefense": 100,
|
|
"BaseHealth": 140
|
|
},
|
|
"Bowmen": {
|
|
"BaseAttack": 140,
|
|
"BaseDefense": 90,
|
|
"BaseHealth": 120
|
|
},
|
|
"Siege": {
|
|
"BaseAttack": 200,
|
|
"BaseDefense": 80,
|
|
"BaseHealth": 100
|
|
}
|
|
},
|
|
|
|
"FieldInterception": {
|
|
"DefenseBonus": 0.15,
|
|
"AttackBonus": 0.05,
|
|
"AttackerPenalty": 0.05
|
|
},
|
|
|
|
"RallySettings": {
|
|
"StandardRallyMaxParticipants": 6,
|
|
"MegaRallyCapacityMultiplier": 1.0,
|
|
"RallyWaitTimeMinutes": 30,
|
|
"RallyLeaderStatsSharingEnabled": true
|
|
},
|
|
|
|
"BattleSettings": {
|
|
"FastPacedCombat": true,
|
|
"BattleDurationMinutes": 3,
|
|
"ShowDetailedCombatStats": false,
|
|
"EnableCombatSecrecy": true,
|
|
"PowerCalculationWeights": {
|
|
"AttackWeight": 0.35,
|
|
"DefenseWeight": 0.35,
|
|
"HealthWeight": 0.30
|
|
}
|
|
}
|
|
},
|
|
"Database": {
|
|
"MaxRetryCount": 3,
|
|
"MaxRetryDelaySeconds": 30,
|
|
"CommandTimeoutSeconds": 30,
|
|
"EnableSensitiveDataLogging": false
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning",
|
|
"ShadowedRealms": "Information",
|
|
"ShadowedRealms.Combat": "Debug"
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
} |