Add CI workflow for Docker build and deployment; update Dockerfile and adjust health reduction logic in PetActionService; modify database connection string in appsettings.json

This commit is contained in:
2025-02-15 22:20:19 -03:00
parent b84599b370
commit 1cf5f07c80
4 changed files with 66 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ namespace PetCompanion.Services
pet.Health -= 5;
}
if (random.Next(0, 100) < 5)
if (random.Next(0, 100) < 2)
{
gathered.Add(new ActionGathered
{
@@ -125,7 +125,7 @@ namespace PetCompanion.Services
Amount = (int)(baseRate * (pet.Stats.Strength * 0.25))
});
if (random.Next(0, 100) < 10)
if (random.Next(0, 100) < 5)
{
pet.Health -= random.Next(5, 10);
}