add and fix a lot
This commit is contained in:
@@ -148,12 +148,12 @@ namespace GamblingCoin
|
||||
|
||||
public AdvancedEffectSettings AdvancedNegative { get; set; } = new()
|
||||
{
|
||||
Effects = new[] { nameof(InsufficientLighting), nameof(AmnesiaVision) },
|
||||
Effects = new[] { nameof(InsufficientLighting), nameof(AmnesiaVision), nameof(Burned) },
|
||||
Settings = new Dictionary<string, EffectSettings>
|
||||
{
|
||||
{ nameof(InsufficientLighting), new EffectSettings(1, 20f, true) },
|
||||
{ nameof(InsufficientLighting), new EffectSettings(1, 30f, true) },
|
||||
{ nameof(AmnesiaVision), new EffectSettings(3, 30f, true) },
|
||||
{ nameof(Bleeding), new EffectSettings(3, 40f, true) },
|
||||
{ nameof(Burned), new EffectSettings(3, 60f, true) },
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -147,11 +147,7 @@ namespace GamblingCoin
|
||||
{
|
||||
x.Player.SendBroadcast(configMessages.PocketDimensionMessage, configGameplay.BroadcastDuration);
|
||||
|
||||
var newPos = Map.Rooms.First(roomIdentifier => roomIdentifier.Zone==FacilityZone.Other).Position;
|
||||
|
||||
x.Player.ReferenceHub.playerEffectsController.ChangeState(nameof(Corroding),1, 999, true);
|
||||
|
||||
x.Player.Position = newPos + new UnityEngine.Vector3(0, configGameplay.TeleportHeightOffset, 0);
|
||||
PocketDimension.ForceInside(x.Player);
|
||||
},
|
||||
configChances.PocketDimensionChance)
|
||||
.AddAction(x =>
|
||||
@@ -232,7 +228,7 @@ namespace GamblingCoin
|
||||
|
||||
Player[] GetPlayers()
|
||||
{
|
||||
return Player.Dictionary.Values.ToArray();
|
||||
return Player.ReadyList.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user