Adjust Gangwar Takeover
This commit is contained in:
File diff suppressed because it is too large
Load Diff
1144
ReallifeGamemode.Client/Gui/Inventory/inventory_old.ts
Normal file
1144
ReallifeGamemode.Client/Gui/Inventory/inventory_old.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -114,16 +114,13 @@ namespace ReallifeGamemode.Server.Gangwar
|
|||||||
this.timerCount = 0;
|
this.timerCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void reloadGangTurfs()
|
private void ReloadGangTurfs()
|
||||||
{
|
{
|
||||||
var t = Task.Factory.StartNew(() =>
|
NAPI.Task.Run(() =>
|
||||||
{
|
{
|
||||||
Task.Delay(10000).Wait();
|
|
||||||
Gangwar.loadTurfs();
|
Gangwar.loadTurfs();
|
||||||
Gangwar.loadTurfs_ToAllPlayers();
|
Gangwar.loadTurfs_ToAllPlayers();
|
||||||
});
|
}, delayTime: 2000);
|
||||||
t.Wait();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Tick(object sender, System.Timers.ElapsedEventArgs e)
|
private void Tick(object sender, System.Timers.ElapsedEventArgs e)
|
||||||
@@ -303,7 +300,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
|||||||
NAPI.ClientEvent.TriggerClientEventForAll("CLIENT:Turf_Conquered", JsonConvert.SerializeObject(this.TurfID), JsonConvert.SerializeObject(this.status), JsonConvert.SerializeObject(this.Owner));
|
NAPI.ClientEvent.TriggerClientEventForAll("CLIENT:Turf_Conquered", JsonConvert.SerializeObject(this.TurfID), JsonConvert.SerializeObject(this.status), JsonConvert.SerializeObject(this.Owner));
|
||||||
Gangwar.loadTurfs();
|
Gangwar.loadTurfs();
|
||||||
Gangwar.loadTurfs_ToAllPlayers();
|
Gangwar.loadTurfs_ToAllPlayers();
|
||||||
reloadGangTurfs();
|
ReloadGangTurfs();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void attack(string attacker)
|
public void attack(string attacker)
|
||||||
|
|||||||
Reference in New Issue
Block a user