weapon_description
The purpose of this element is to widely provide the ability to examine an object and determine its stats, with the ability to add additional notes or information based on type or other factors
Procs | |
build_label_text | Compiles a warning label detailing various statistics of the examined weapon |
---|---|
topic_handler | Details the stats of the examined weapon |
warning_label | This proc is called when the user examines an object with the associated element. This produces a hyperlinked text line provided that the given item meets the weapon-determining criteria (Sufficient force or notes) |
weapon_tag_convert | Converts percentile based stats to an adjective appropriate for the examined warning label |
Proc Details
build_label_text
Compiles a warning label detailing various statistics of the examined weapon
This function is called by the "examine" function of Topic(), and compiles a number of relevant weapon stats into a message that is then shown to the user Arguments:
- source - The object whose stats are being examined
topic_handler
Details the stats of the examined weapon
This function is called when the user clicks the hyperlink provided by warning_label(). It calls build_label_text() and outputs its return value to the user
Arguments:
- source - Object being examined, sent to build_label_text()
- href-list - List provided by the href of input values, used to know what hyperlinked action is being attempted
warning_label
This proc is called when the user examines an object with the associated element. This produces a hyperlinked text line provided that the given item meets the weapon-determining criteria (Sufficient force or notes)
Arguments: * source - Object being examined, cast into an item variable
- user - Unused
- examine_texts - The output text list of the original examine function
weapon_tag_convert
Converts percentile based stats to an adjective appropriate for the examined warning label
Arguments:
- tag_val: The value of the item to be added to the tag