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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user