ðŸ”ĨForgeService

Service for giving Forge Points and checking Forge Upgrade levels.

Example usage:

Events.EntityDeath(function(event)
    if not event.finalKill then
        return
    end
    
    if (event.killer == nil) then
        return
    end
    
    if (event.killer:getPlayer() == nil) then
        return
    end
    
    ForgeService.givePoints(event.killer:getPlayer(), 5)
end)

Functions

getPoints(player: Player): number

Returns the number of unused Forge Points currently held by the player.

givePoints(player: Player, amount: number)

Gives the player the specified number of Forge Points.

getForgeUpgradeLevel(player: Player, upgradeType: ForgeUpgrade): number

Returns the player's current level for the specified Forge Upgrade.

Last updated