Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5d9370a
Bump Lib.Harmony from 2.2.2 to 2.3.3 in /EXILED
dependabot[bot] Oct 6, 2024
fc962bf
Merge branch 'master' into dependabot/nuget/EXILED/Lib.Harmony-2.3.3
louis1706 Nov 22, 2024
cde0333
Merge branch 'master' into dependabot/nuget/EXILED/Lib.Harmony-2.3.3
louis1706 Dec 26, 2024
088ba33
LabAPI Update (#435)
louis1706 Feb 11, 2025
0269f15
LabAPI Update 14.0.3 (#439)
louis1706 Feb 18, 2025
953288a
9.6.0-beta3
louis1706 Feb 18, 2025
bab5695
this will need to be revert
louis1706 Feb 18, 2025
6c751ff
push_nuget not working for LabAPI
louis1706 Feb 18, 2025
857edae
Fixing RoundEnd Patch
louis1706 Feb 19, 2025
925ee34
Adding CustomRole::Gravity
louis1706 Feb 19, 2025
478df81
Remove Testing Log
louis1706 Feb 19, 2025
7abb724
fix: Command events fix (#444)
VALERA771 Feb 23, 2025
3f6bea2
fix: Fixing UnlockingGenerator
louis1706 Feb 23, 2025
35ee723
Fix RoundEnd completelly
louis1706 Feb 23, 2025
6f63c3e
fix: Hurting event NRE fix (#443)
VALERA771 Feb 25, 2025
838b1d9
Merge branch 'dev' into LabAPI
louis1706 Mar 5, 2025
cde782f
9.6.0-beta4
louis1706 Mar 5, 2025
3226454
this will required to be revert
louis1706 Mar 7, 2025
586d1f0
fix: InteractingDoorEvent::CanInteract (#463)
louis1706 Apr 5, 2025
841a5ce
Fixed Error & InteractingScp330 IL Code
louis1706 Apr 5, 2025
8df2572
TODO: Fix THE CRASH ISSUE
louis1706 Apr 5, 2025
21560f6
Fix Consumed Event - doubt
louis1706 Apr 5, 2025
aaa01b9
Fix & Small change on UsingAndCancellingItemUse
louis1706 Apr 6, 2025
ba6d2ce
Fix an issue where HashSetPool was never return
louis1706 Apr 6, 2025
bf437c5
Fix IL CODE error & remove debug
louis1706 Apr 6, 2025
c59de13
Add warning in case of missing PrefabType
louis1706 Apr 6, 2025
a284315
Capybara Toy
louis1706 Apr 6, 2025
4a807e4
remove using
louis1706 Apr 7, 2025
883218f
Fix SpawningRagdoll not setting NetworkInfo
louis1706 Apr 7, 2025
e3c3cc2
Fix Ragdoll Scale & ConsumingEvent
louis1706 Apr 7, 2025
9125258
Missing NetworkInfo.Scale Argument
louis1706 Apr 7, 2025
154feb6
Fix: Door.Get(GameObject)
louis1706 Apr 7, 2025
6ae1304
TantrumHazard is always null
louis1706 Apr 7, 2025
73726f7
9.6.0-beta5
louis1706 Apr 7, 2025
c577619
Update EXILED_DLL_ARCHIVER_URL for LabAPI
louis1706 Apr 7, 2025
7567702
fix: use basegame validation for CustomInfo (#452)
obvEve Apr 19, 2025
9e0dfd4
Merge branch 'LabAPI' into dependabot/nuget/EXILED/Lib.Harmony-2.3.3
louis1706 Apr 19, 2025
0657173
Update EXILED/EXILED.props
louis1706 Apr 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/labapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Exiled Dev CI

on:
push:
branches:
- LabAPI
pull_request:
branches:
- LabAPI
workflow_dispatch:

defaults:
run:
working-directory: ./EXILED

env:
EXILED_REFERENCES_URL: https://exmod-team.github.io/SL-References/LabAPI.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/EXILED/References
EXILED_DLL_ARCHIVER_URL: https://github.com/ExMod-Team/EXILED-DLL-Archiver/releases/download/v1.8.1/EXILED-DLL-Archiver.exe

jobs:

build:

runs-on: windows-latest
# Prevent double running for push & pull_request events from the main repo
if: github.event_name != 'push' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

steps:

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4.0.1

- name: Setup Nuget
uses: nuget/setup-nuget@v2

- uses: actions/checkout@v4.1.7

- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile ${{ github.workspace }}/EXILED/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ env.EXILED_REFERENCES_PATH }}

- name: Build
env:
EXILED_REFERENCES: ${{ env.EXILED_REFERENCES_PATH }}
shell: pwsh
run: |
./build.ps1 -BuildNuGet
$File = (Get-ChildItem -Path . -Include 'ExMod.Exiled.*.nupkg' -Recurse).Name
Out-File -FilePath ${{ github.env }} -InputObject "PackageFile=$File" -Encoding utf-8 -Append

- name: Upload nuget package
uses: actions/upload-artifact@v4
with:
name: ${{ env.PackageFile }}
path: EXILED/${{ env.PackageFile }}

- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.EXILED_DLL_ARCHIVER_URL }} -OutFile ${{ github.workspace }}/EXILED/EXILED-DLL-Archiver.exe

- name: Packaging results as tar.gz
shell: pwsh
run: ./packaging.ps1

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Build Result
path: EXILED/bin/Release/Exiled.tar.gz

2 changes: 1 addition & 1 deletion .github/workflows/push_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaults:
working-directory: ./EXILED

env:
EXILED_REFERENCES_URL: https://ExMod-Team.github.io/SL-References/Dev.zip
EXILED_REFERENCES_URL: https://ExMod-Team.github.io/SL-References/LabAPI.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/EXILED/References

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ defaults:
working-directory: ./EXILED

env:
EXILED_REFERENCES_URL: https://exmod-team.github.io/SL-References/Dev.zip
EXILED_REFERENCES_URL: https://exmod-team.github.io/SL-References/LabAPI.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/EXILED/References
EXILED_DLL_ARCHIVER_URL: https://github.com/ExMod-Team/EXILED-DLL-Archiver/releases/latest/download/EXILED-DLL-Archiver.exe
EXILED_DLL_ARCHIVER_URL: https://github.com/ExMod-Team/EXILED-DLL-Archiver/releases/download/v1.8.1/EXILED-DLL-Archiver.exe

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions EXILED/EXILED.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

<PropertyGroup>
<!-- This is the global version and is used for all projects that don't have a version -->
<Version Condition="$(Version) == ''">9.5.1</Version>
<Version Condition="$(Version) == ''">9.6.0-beta5</Version>
<!-- Enables public beta warning via the PUBLIC_BETA constant -->
<PublicBeta>false</PublicBeta>

<HarmonyVersion>2.2.2</HarmonyVersion>
<HarmonyVersion>2.3.6</HarmonyVersion>
<StyleCopVersion>1.1.118</StyleCopVersion>
<SemanticVersioningVersion>2.0.2</SemanticVersioningVersion>

Expand Down
5 changes: 5 additions & 0 deletions EXILED/Exiled.API/Enums/AdminToyType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@ public enum AdminToyType
/// Speaker toy.
/// </summary>
Speaker,

/// <summary>
/// Capybara toy.
/// </summary>
Capybara,
}
}
9 changes: 9 additions & 0 deletions EXILED/Exiled.API/Enums/PrefabType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,5 +336,14 @@ public enum PrefabType

[Prefab(912031041, "ElevatorChamberNuke")]
ElevatorChamberNuke,

[Prefab(3087007600, "CapybaraToy")]
CapybaraToy,

[Prefab(3539746802, "Sinkhole")]
Sinkhole,

[Prefab(1548138668, "AutoRagdoll")]
AutoRagdoll,
}
}
2 changes: 1 addition & 1 deletion EXILED/Exiled.API/Exiled.API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
</Reference>
<Reference Include="Assembly-CSharp-firstpass" HintPath="$(EXILED_REFERENCES)\Assembly-CSharp-firstpass.dll" Private="false" />
<Reference Include="CommandSystem.Core" HintPath="$(EXILED_REFERENCES)\CommandSystem.Core.dll" Private="false" />
<Reference Include="LabApi" HintPath="$(EXILED_REFERENCES)\LabApi.dll" Private="false" />
<Reference Include="Pooling" HintPath="$(EXILED_REFERENCES)\Pooling.dll" Private="false" />
<Reference Include="Mirror" HintPath="$(EXILED_REFERENCES)\Mirror.dll" Private="false" />
<Reference Include="NorthwoodLib" HintPath="$(EXILED_REFERENCES)\NorthwoodLib.dll" Private="false" />
<Reference Include="PluginAPI" HintPath="$(EXILED_REFERENCES)\PluginAPI.dll" Private="false" />
<Reference Include="Unity.TextMeshPro" HintPath="$(EXILED_REFERENCES)\Unity.TextMeshPro.dll" Private="false" />
<Reference Include="UnityEngine" HintPath="$(EXILED_REFERENCES)\UnityEngine.dll" Private="false" />
<Reference Include="UnityEngine.CoreModule" HintPath="$(EXILED_REFERENCES)\UnityEngine.CoreModule.dll" Private="false" />
Expand Down
4 changes: 2 additions & 2 deletions EXILED/Exiled.API/Extensions/UserGroupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static bool EqualsTo(this UserGroup @this, UserGroup other)
/// </summary>
/// <param name="this">The <see cref="UserGroup"/>.</param>
/// <returns>The key of that group, or <see langword="null"/> if not found.</returns>
public static string GetKey(this UserGroup @this) => Server.PermissionsHandler._groups
public static string GetKey(this UserGroup @this) => Server.PermissionsHandler.Groups
.FirstOrDefault(pair => pair.Value.EqualsTo(@this)).Key;

/// <summary>
Expand All @@ -47,7 +47,7 @@ public static string GetKey(this UserGroup @this) => Server.PermissionsHandler._
/// <returns>The value of that group, or <see langword="null"/> if not found.</returns>
public static UserGroup GetValue(string groupName)
{
ServerStatic.GetPermissionsHandler().GetAllGroups().TryGetValue(groupName, out UserGroup userGroup);
ServerStatic.PermissionsHandler.GetAllGroups().TryGetValue(groupName, out UserGroup userGroup);
return userGroup;
}
}
Expand Down
4 changes: 2 additions & 2 deletions EXILED/Exiled.API/Features/Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ internal Camera(Scp079Camera camera079)
/// </summary>
public Quaternion Rotation
{
get => Base._cameraAnchor.rotation;
set => Base._cameraAnchor.rotation = value;
get => Base.CameraAnchor.rotation;
set => Base.CameraAnchor.rotation = value;
}

/// <summary>
Expand Down
26 changes: 0 additions & 26 deletions EXILED/Exiled.API/Features/CustomHealthStat.cs

This file was deleted.

16 changes: 4 additions & 12 deletions EXILED/Exiled.API/Features/CustomStats/CustomHumeShieldStat.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// <copyright file="CustomHumeShieldStat.cs" company="ExMod Team">
// Copyright (c) ExMod Team. All rights reserved.
// Licensed under the CC BY-SA 3.0 license.
Expand All @@ -18,25 +18,17 @@ namespace Exiled.API.Features.CustomStats
/// </summary>
public class CustomHumeShieldStat : HumeShieldStat
{
/// <inheritdoc />
public override float MaxValue => CustomMaxValue == -1 ? base.MaxValue : CustomMaxValue;

/// <summary>
/// Gets or sets the multiplier for gaining HumeShield.
/// </summary>
public float ShieldRegenerationMultiplier { get; set; } = 1;

/// <summary>
/// Gets or sets the maximum amount of HumeShield the player can have.
/// </summary>
public float CustomMaxValue { get; set; } = -1;

private float ShieldRegeneration => TryGetHsModule(out HumeShieldModuleBase controller) ? controller.HsRegeneration * ShieldRegenerationMultiplier : 0;

/// <inheritdoc/>
public override void Update()
{
if (MaxValue == -1 && ShieldRegenerationMultiplier is 1)
if (ShieldRegenerationMultiplier is 1)
{
base.Update();
return;
Expand All @@ -45,15 +37,15 @@ public override void Update()
if (!NetworkServer.active)
return;

if (_valueDirty)
if (ValueDirty)
{
new SyncedStatMessages.StatMessage()
{
Stat = this,
SyncedValue = CurValue,
}.SendToHubsConditionally(CanReceive);
_lastSent = CurValue;
_valueDirty = false;
ValueDirty = false;
}

if (ShieldRegeneration == 0)
Expand Down
16 changes: 8 additions & 8 deletions EXILED/Exiled.API/Features/Doors/CheckpointDoor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,35 +44,35 @@ internal CheckpointDoor(Interactables.Interobjects.CheckpointDoor door, List<Roo
/// </summary>
public Interactables.Interobjects.CheckpointDoor.CheckpointSequenceStage CurrentStage
{
get => Base._currentSequence;
set => Base._currentSequence = value;
get => Base.CurrentSequence;
set => Base.CurrentSequence = value;
}

/// <summary>
/// Gets or sets a time in seconds for main timer.
/// </summary>
public float MainTimer
{
get => Base._mainTimer;
set => Base._mainTimer = value;
get => Base.MainTimer;
set => Base.MainTimer = value;
}

/// <summary>
/// Gets or sets time before doors close.
/// </summary>
public float WaitTime
{
get => Base._waitTime;
set => Base._waitTime = value;
get => Base.WaitTime;
set => Base.WaitTime = value;
}

/// <summary>
/// Gets or sets time in seconds when warning will be shown.
/// </summary>
public float WarningTime
{
get => Base._warningTime;
set => Base._warningTime = value;
get => Base.WarningTime;
set => Base.WarningTime = value;
}

/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion EXILED/Exiled.API/Features/Doors/Door.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public static T Get<T>(string name)
/// </summary>
/// <param name="gameObject">The base-game <see cref="UnityEngine.GameObject"/>.</param>
/// <returns>The <see cref="Door"/> with the given name or <see langword="null"/> if not found.</returns>
public static Door Get(GameObject gameObject) => gameObject is null ? null : Get(gameObject.GetComponentInChildren<DoorVariant>());
public static Door Get(GameObject gameObject) => gameObject is null ? null : Get(gameObject.GetComponentInParent<DoorVariant>());

/// <summary>
/// Returns the closest <see cref="Door"/> to the given <paramref name="position"/>.
Expand Down
4 changes: 2 additions & 2 deletions EXILED/Exiled.API/Features/Hazards/TemporaryHazard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public bool IsDestroyed
/// </summary>
public float Duration
{
get => Base._elapsed;
set => Base._elapsed = value;
get => Base.Elapsed;
set => Base.Elapsed = value;
}

/// <summary>
Expand Down
22 changes: 11 additions & 11 deletions EXILED/Exiled.API/Features/Lockers/Chamber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ public Chamber(LockerChamber chamber, Locker locker)
/// </summary>
public IEnumerable<Pickup> ToBeSpawned
{
get => Base._toBeSpawned.Select(Pickup.Get);
get => Base.ToBeSpawned.Select(Pickup.Get);
set
{
Base._toBeSpawned.Clear();
Base.ToBeSpawned.Clear();

foreach (Pickup pickup in value)
Base._toBeSpawned.Add(pickup.Base);
Base.ToBeSpawned.Add(pickup.Base);
}
}

Expand Down Expand Up @@ -137,26 +137,26 @@ public bool UseMultipleSpawnpoints
/// </remarks>
public Transform Spawnpoint
{
get => Base._spawnpoint;
set => Base._spawnpoint = value;
get => Base.Spawnpoint;
set => Base.Spawnpoint = value;
}

/// <summary>
/// Gets or sets a value indicating whether items should be spawned as soon as they one chamber is opened.
/// </summary>
public bool InitiallySpawn
{
get => Base._spawnOnFirstChamberOpening;
set => Base._spawnOnFirstChamberOpening = value;
get => Base.SpawnOnFirstChamberOpening;
set => Base.SpawnOnFirstChamberOpening = value;
}

/// <summary>
/// Gets or sets the amount of time before a player can interact with the chamber again.
/// </summary>
public float Cooldown
{
get => Base._targetCooldown;
set => Base._targetCooldown = value;
get => Base.TargetCooldown;
set => Base.TargetCooldown = value;
}

/// <summary>
Expand Down Expand Up @@ -219,7 +219,7 @@ public void AddItemToSpawn(ItemType itemType, int quantity = 1, bool spawnIfIsOp
continue;
}

Base._toBeSpawned.Add(pickup.Base);
Base.ToBeSpawned.Add(pickup.Base);
}
}

Expand All @@ -245,6 +245,6 @@ public Vector3 GetRandomSpawnPoint()
/// </summary>
/// <param name="chamber"><see cref="LockerChamber"/>.</param>
/// <returns><see cref="Chamber"/>.</returns>
internal static Chamber Get(LockerChamber chamber) => Chambers.TryGetValue(chamber, out Chamber chmb) ? chmb : new(chamber, Locker.Get(x => x.Chambers.Any(x => x.Base == chamber)).FirstOrDefault());
internal static Chamber Get(LockerChamber chamber) => chamber == null ? null : Chambers.TryGetValue(chamber, out Chamber chmb) ? chmb : new(chamber, Locker.Get(x => x.Chambers.Any(x => x.Base == chamber)).FirstOrDefault());
}
}
2 changes: 1 addition & 1 deletion EXILED/Exiled.API/Features/Lockers/Locker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void AddItem(Pickup item)
// If the chamber is configured to spawn items on the first opening, add the item to the list of items to be spawned.
// Otherwise, spawn the item immediately.
if (chamber.InitiallySpawn)
chamber.Base._toBeSpawned.Add(item.Base);
chamber.Base.ToBeSpawned.Add(item.Base);
else
ItemDistributor.SpawnPickup(item.Base);
}
Expand Down
Loading
Loading