Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InventoryResultString ¶
Types ¶
type InvResult ¶
type InvResult struct { // Intermediate data. RankedWeapons []RankedWeapon WeaponItems []InvItem ArmorID int EtcItems []InvItem // Final Result ItemIDs []int WeaponIdx int ArmorIdx int Cash int }
func CalcInventory ¶
CalcInventory calculates an NPC's set of items.
type RankedWeapon ¶
type RankedWeapon struct { AllWeaponIDs []int // All IDs having the relevant weapon type. WeaponID int // The selected weapon ID. SkillLevel int // Level of the relevant weapon skill. Rank int }
RankedWeapon is an abstraction of a set of weapon items. An NPC gets up to three ranked weapons: primary, secondary, and tertiary.
Click to show internal directories.
Click to hide internal directories.