Change Wages on Pilot, Bus and RefuseCollector
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user