/tg/ Station 13 - Modules - TypesProc Details

armor

The armor datum holds information about different types of armor that an atom can have. It also contains logic and helpers for calculating damage and effective damage

Procs

add_other_armorReturns a new armor datum with the given armor added onto this one
generate_new_with_modifiersGenerate a brand new armor datum with the modifiers given, if ARMOR_ALL is specified only that modifier is used
generate_new_with_multipliersGenerate a brand new armor datum with the multiplier given, if ARMOR_ALL is specified only that modifer is used
generate_new_with_specificGenerate a brand new armor datum with the values given, if a value is not present it carries over
get_ratingGets the rating of armor for the specified rating
get_rating_listConverts all the ratings of the armor into a list, optionally inversed
has_any_armorChecks if any of the armor values are non-zero, so this technically also counts negative armor!
subtract_other_armorReturns a new armor datum with the given armor removed from this one

Proc Details

add_other_armor

Returns a new armor datum with the given armor added onto this one

generate_new_with_modifiers

Generate a brand new armor datum with the modifiers given, if ARMOR_ALL is specified only that modifier is used

generate_new_with_multipliers

Generate a brand new armor datum with the multiplier given, if ARMOR_ALL is specified only that modifer is used

generate_new_with_specific

Generate a brand new armor datum with the values given, if a value is not present it carries over

get_rating

Gets the rating of armor for the specified rating

get_rating_list

Converts all the ratings of the armor into a list, optionally inversed

has_any_armor

Checks if any of the armor values are non-zero, so this technically also counts negative armor!

subtract_other_armor

Returns a new armor datum with the given armor removed from this one