career.can_promote
Overview
- Returns whether the character has a Business career and is eligible for promotion (rank below max). Non-mutating; safe to poll.
Metadata
| Field | Value |
|---|---|
| Display | Can Promote |
| Category | career |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Target entity ID (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
entity_id | entityId | yes | Target entity id |
has_career | bool | yes | Whether the character has a Business career |
can_promote | bool | yes | Whether the character is eligible for promotion |
rank | int | yes | Current career rank (-1 if none) |
max_rank | int | yes | Maximum career rank (-1 if none) |
Usage
await inzoi.cli.execute('career.can_promote', {
entity_id: 0, // optional
});