API:GameData.Player.GetSpecialtyRefundCost
From RoR Wiki
UI Lua API · Career functions
Version: WAR 1.4.8
Returns the price of refunding the player's specialisation (mastery) points.
cost = GameData.Player.GetSpecialtyRefundCost()
Arguments
None.
Returns
- cost
number– Refund price in money.
Details
- The value is read from the client's career advance data; the function does no calculation.
- The stock specialisation training window compares it with
GameData.Player.moneybefore offering RefundSpecialtyPoints.
Errors
None.
Example
From ea_interactionwindow/source/interactionspecialtytraining.lua:
local respecCost = GameData.Player.GetSpecialtyRefundCost() local pointsSpent = GameData.Player.GetAdvancePointsSpent()[GameData.CareerCategory.SPECIALIZATION]
