game-common / pragma.inventory / LimitedGrantPlugin /

LimitedGrantPlugin #

interface LimitedGrantPlugin

Plugin to determine if player should be given a limited grant

Functions #

NameSummary

shouldGrant

open suspend fun shouldGrant(playerInventory: InventoryData, limitedGrant: InventoryContent.LimitedGrant): Boolean

Allows for implementing custom requirements when performing a limited grant. LimitedGrant content entry and the player’s InventoryData are provided to help determine if the grant should be allowed.