Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions code/weapon/weapon.h
Original file line number Diff line number Diff line change
Expand Up @@ -1086,5 +1086,15 @@ bool weapon_multilock_can_lock_on_target(object* shooter, object* target_objp, w
// Return whether the weapon has a target it is currently homing on
bool weapon_has_homing_object(weapon* wp);

// Variant type for weapon stat values: numeric, boolean, or string
using weapon_stat_value = std::variant<float, bool, SCP_string>;

// Returns a map of combat stats for a single weapon (keyed by column name).
// Works for any weapon type (primary, secondary, beam).
SCP_map<SCP_string, weapon_stat_value> weapon_get_stats(const weapon_info &wi);

// Returns MediaVP-style human-readable text block for a single weapon.
SCP_string weapon_get_stats_text(const weapon_info &wi);


#endif
Loading
Loading