CORPORATION: Add new API to check if player can create corporation (#1598)

* CORPORATION: Add new API to check if player can create corporation
* Update description of createCorporation API
* Return enum instead of true/false
* Use throwIfReachable
* Fix typo in comment
This commit is contained in:
catloversg
2024-12-01 12:49:19 +07:00
committed by GitHub
parent 67704f2ab0
commit 6e1848dd79
12 changed files with 179 additions and 43 deletions
+1
View File
@@ -400,6 +400,7 @@ const grafting = {
const corporation = {
hasCorporation: 0,
canCreateCorporation: 0,
createCorporation: RamCostConstants.CorporationAction,
hasUnlock: RamCostConstants.CorporationInfo,
getUnlockCost: RamCostConstants.CorporationInfo,