Skip to content

Commit

Permalink
inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonjemus committed Dec 29, 2024
1 parent 4f0dfe6 commit cf583ea
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions EXILED/Exiled.API/Features/Respawn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,40 +331,28 @@ public static bool SetTokens(SpawnableFaction spawnableFaction, int amount)
/// </summary>
/// <param name="faction">The <see cref="Faction"/> to whose <see cref="ILimitedWave"/>s to grant influence.</param>
/// <param name="amount">The amount of influence to grant.</param>
public static void GrantInfluence(Faction faction, int amount)
{
FactionInfluenceManager.Add(faction, amount);
}
public static void GrantInfluence(Faction faction, int amount) => FactionInfluenceManager.Add(faction, amount);

/// <summary>
/// Removes influence from a given <see cref="Faction"/>'s <see cref="ILimitedWave"/>s.
/// </summary>
/// <param name="faction">The <see cref="Faction"/> from whose <see cref="ILimitedWave"/>s to remove influence.</param>
/// <param name="amount">The amount of influence to remove.</param>
public static void RemoveInfluence(Faction faction, int amount)
{
FactionInfluenceManager.Remove(faction, amount);
}
public static void RemoveInfluence(Faction faction, int amount) => FactionInfluenceManager.Remove(faction, amount);

/// <summary>
/// Get influence to a given <see cref="Faction"/>.
/// </summary>
/// <param name="faction">The <see cref="Faction"/> to get influence.</param>
/// <returns>Get the faction influence..</returns>
public static float GetInfluence(Faction faction)
{
return FactionInfluenceManager.Get(faction);
}
public static float GetInfluence(Faction faction) => FactionInfluenceManager.Get(faction);

/// <summary>
/// Set influence to a given <see cref="Faction"/>.
/// </summary>
/// <param name="faction">The <see cref="Faction"/> to set influence.</param>
/// <param name="influence">The amount of influence to set.</param>
public static void SetInfluence(Faction faction, float influence)
{
FactionInfluenceManager.Set(faction, influence);
}
public static void SetInfluence(Faction faction, float influence) => FactionInfluenceManager.Set(faction, influence);

/// <summary>
/// Starts the spawn sequence of the given <see cref="Faction"/>.
Expand Down

0 comments on commit cf583ea

Please sign in to comment.