Change Wages on Pilot, Bus and RefuseCollector

This commit is contained in:
2021-04-22 21:13:15 +02:00
parent 9e6df00f24
commit 253d982883
3 changed files with 16 additions and 7 deletions

View File

@@ -21,6 +21,8 @@ namespace ReallifeGamemode.Server.Job
public override bool NeedVehicleToStart => false;
private const int MAX_BAG = 40;
private const int WAGE = 80;
private const int BONUS = 10;
public RefuseCollectorJob()
{
@@ -271,12 +273,12 @@ namespace ReallifeGamemode.Server.Job
{
if (target != null)
{
user1.Wage += 25;
user2.Wage += 25;
user1.Wage += WAGE / 2;
user2.Wage += WAGE / 2;
}
else
{
user1.Wage += 50;
user1.Wage += WAGE;
}
dbContext.SaveChanges();
}
@@ -302,7 +304,7 @@ namespace ReallifeGamemode.Server.Job
User user1 = player.GetUser(dbContext);
User user2 = target.GetUser(dbContext);
int bonus = 5 * data.getTrashCount();
int bonus = BONUS * data.getTrashCount();
if (target != null)
{