Part of TPG namespace
TPG.GetWeapon(category, id)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Look up one discovered weapon entry. TPG.GetArmor, this has no fallback entry, so callers must handle nil.
Parameters
| Name | Type | Description |
|---|---|---|
category | string | "Primary", "Secondary", or "Special". |
id | string | A weapon class, a virtual id, or `"none"`. |
Returns
| Type | Description |
|---|---|
table | The entry, or nil for an unknown category or id -- unlike |
Examples
No examples available.
Used In
No usages found in the codebase.