finish weaponDealsystem for pd and fib & and change item IDs
This commit is contained in:
@@ -20,17 +20,39 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
new Vector3(-1889.91, 2045.6, 138.68)
|
||||
}.AsReadOnly();
|
||||
|
||||
public static readonly IReadOnlyCollection<Vector3> StaatsFrakWT_Route = new List<Vector3>
|
||||
{
|
||||
|
||||
new Vector3(3627.138, 3759.711, 28.515)
|
||||
|
||||
}.AsReadOnly();
|
||||
|
||||
public static Vector3 getRndWD_Route(int factionID)
|
||||
{
|
||||
if (!factionWeaponDeal.ContainsKey(factionID))
|
||||
return new Vector3();
|
||||
|
||||
if (factionWeaponDeal[factionID] == -1)
|
||||
if(factionID == 1 | factionID == 3)
|
||||
{
|
||||
Random rnd = new Random();
|
||||
factionWeaponDeal[factionID] = rnd.Next(0, StaatsFrakWT_Route.Count - 1);
|
||||
return StaatsFrakWT_Route.ElementAt(factionWeaponDeal[factionID]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Random rnd = new Random();
|
||||
factionWeaponDeal[factionID] = rnd.Next(0, WT_Route.Count - 1);
|
||||
return WT_Route.ElementAt(factionWeaponDeal[factionID]);
|
||||
}
|
||||
|
||||
/* if (factionWeaponDeal[factionID] == -1)
|
||||
{
|
||||
Random rnd = new Random();
|
||||
factionWeaponDeal[factionID] = rnd.Next(0, WT_Route.Count - 1);
|
||||
}
|
||||
return WT_Route.ElementAt(factionWeaponDeal[factionID]);
|
||||
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user