zum testen: gangwar
This commit is contained in:
@@ -13,6 +13,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
{
|
||||
public static Turf[] _loadedTurfs;
|
||||
private static List<Turfs> turfs;
|
||||
public const int GANGWAR_TOTAL_TIME = 90;
|
||||
|
||||
public static void loadTurfs()
|
||||
{
|
||||
|
||||
@@ -31,8 +31,6 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
public Player[] playerInGangwar { get; set; }
|
||||
public int timerCount;
|
||||
|
||||
private const int GANGWAR_TOTAL_TIME = 30;
|
||||
|
||||
public Turf(int TurfID, string TurfName, int color, string Owner, int value, int maxValue, bool surplus)
|
||||
{
|
||||
this.TurfID = TurfID;
|
||||
@@ -144,7 +142,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
continue;
|
||||
}
|
||||
|
||||
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, this.Att_Score, this.Def_Score, GANGWAR_TOTAL_TIME - timerCount);
|
||||
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, this.Att_Score, this.Def_Score, Gangwar.GANGWAR_TOTAL_TIME - timerCount);
|
||||
}
|
||||
/*if (this.Att_Score >= 200)
|
||||
{
|
||||
@@ -155,7 +153,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
this.takeOver(this.Owner);
|
||||
}*/
|
||||
timerCount += 1;
|
||||
if (timerCount >= GANGWAR_TOTAL_TIME)
|
||||
if (timerCount >= Gangwar.GANGWAR_TOTAL_TIME)
|
||||
{
|
||||
if (this.Att_Score > this.Def_Score)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user