Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GameData.Player.GetSpecialtyRefundCost

From RoR Wiki
Revision as of 19:42, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.money before offering RefundSpecialtyPoints.

Errors

None.

Example

From ea_interactionwindow/source/interactionspecialtytraining.lua:

local respecCost = GameData.Player.GetSpecialtyRefundCost()
local pointsSpent = GameData.Player.GetAdvancePointsSpent()[GameData.CareerCategory.SPECIALIZATION]

See also