add and fix a lot

This commit is contained in:
2025-06-05 01:11:30 +02:00
parent 9bf05f87aa
commit 17c654d889
23 changed files with 1235 additions and 65 deletions
+3 -3
View File
@@ -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) },
}
};
}
+2 -6
View File
@@ -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();
}
}