Skip to content

Commit

Permalink
Finally can i spawn rats?
Browse files Browse the repository at this point in the history
  • Loading branch information
NotZer0Two committed Aug 11, 2024
1 parent 9b02958 commit 4f79a6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion EXILED/Exiled.API/Features/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,12 @@ public static void PlayGunSound(Vector3 position, ItemType firearmType, byte max
/// <summary>
/// Spawns a Mice inside the <see cref="RoomType.EzShelter"/>.
/// </summary>
/// <param name="mice">Amount of mice you want to spawn.</param>
/// <param name="mice">The type of mice you want to spawn..</param>
public static void SpawnMice(byte mice = 1)
{
if (mice > SqueakSpawner.mice.Length)
new OverflowException($"The mice type are from 1 to {SqueakSpawner.mice.Length}");

SqueakSpawner.NetworksyncSpawn = mice;
SqueakSpawner.SyncMouseSpawn(0, SqueakSpawner.NetworksyncSpawn);
}
Expand Down

0 comments on commit 4f79a6d

Please sign in to comment.