@@ -608,21 +608,21 @@ function ArtifactStruct(Index) constructor {
608608 var _return_text = " " ;
609609 var _tag_names = struct_get_names (text_set);
610610 var _len = array_length (_tag_names);
611-
611+
612612 for (var i = 0 ; i < _len; i++) {
613613 if (has_tag (_tag_names[i])) {
614614 _return_text = text_set[$ _tag_names[i]];
615615 break ;
616616 }
617617 }
618618 return _return_text;
619- }
619+ };
620620
621621 // / @desc Generates a formatted description for an artifact based on its tags and type.
622622 // / @returns {string} The full descriptive text.
623623 static get_description = function () {
624624 var _custom_desc = string (custom_description);
625-
625+
626626 if (_custom_desc != " " ) {
627627 return _custom_desc;
628628 }
@@ -631,7 +631,7 @@ function ArtifactStruct(Index) constructor {
631631 var _mission_text = " " ;
632632 var _aesthetic_text = " " ;
633633 var _extra_text = " " ;
634-
634+
635635 var _type_category = determine_base_type ();
636636 var _specific_type = type ();
637637 var _is_inquisition = has_tag (" inq" );
@@ -661,43 +661,41 @@ function ArtifactStruct(Index) constructor {
661661 " ADAMANTINE" : " All ceremite on the weapon has been substituted for polished adamantium." ,
662662 " VOI" : " The weapon is black as night, with green, pulsing veins of an unknown energy." ,
663663 " CHB" : " The striking surface has been replaced with a very powerful chainblade." ,
664- " UFL" : " A promethium flamethrower has been built in to the bottom of the weapon."
664+ " UFL" : " A promethium flamethrower has been built in to the bottom of the weapon." ,
665665 };
666-
666+
667667 _aesthetic_text = string (assign_text_from_tag_match (_weapon_primary));
668-
668+
669669 if (_specific_type == " Power Fist" && has_tag (" CHB" )) {
670670 _aesthetic_text = " The addition of a small chainblade has turned it into a chainfist." ;
671671 }
672672
673673 static _weapon_secondary = {
674674 " GOLD" : " It is decorated with gold filigree." ,
675675 " GLOW" : " It glows with an eery, soft blue color." ,
676- " UBOLT" : " A bolter has been integrated."
676+ " UBOLT" : " A bolter has been integrated." ,
677677 };
678678 _extra_text = string (assign_text_from_tag_match (_weapon_secondary));
679-
680679 } else if (_type_category == " armour" ) {
681680 static _armour_primary = {
682681 " ART" : " Much of the armour is made up of finely articulated plates, neatly interlocking." ,
683682 " SPIKES" : " A multitude of spikes, of varying sizes, adorn the armour." ,
684683 " RUNE" : " Several glowing runes have been carved along its surfaces." ,
685- " DRA" : " Several areas of the armour have been patched over with Drake scales."
684+ " DRA" : " Several areas of the armour have been patched over with Drake scales." ,
686685 };
687686 _aesthetic_text = string (assign_text_from_tag_match (_armour_primary));
688687
689688 static _armour_secondary = {
690689 " GOLD" : " It is decorated with gold filigree." ,
691690 " GLOW" : " The optics glow dark red." ,
692- " PUR" : " It has many crude purity seals."
691+ " PUR" : " It has many crude purity seals." ,
693692 };
694693 _extra_text = string (assign_text_from_tag_match (_armour_secondary));
695-
696694 } else if (_type_category == " gear" ) {
697695 static _gear_primary = {
698696 " SUP" : " It has been carved with such intricate detail that the facets are uncountable." ,
699697 " ADAMANTINE" : " All ceremite on the item has been substituted for polished adamantium." ,
700- " GOLD" : " All ceremite on the item has been replaced with shining, polished gold."
698+ " GOLD" : " All ceremite on the item has been replaced with shining, polished gold." ,
701699 };
702700 _aesthetic_text = string (assign_text_from_tag_match (_gear_primary));
703701
@@ -715,17 +713,16 @@ function ArtifactStruct(Index) constructor {
715713 " SKRE" : " While on it lets out a tormented scream." ,
716714 " SILENT" : " Somehow it is completely silent in operation." ,
717715 " GOR" : " The arms are especially lengthy and massively strong." ,
718- " TENTACLES" : " Instead of a single arm it is made up of many smaller tentacles."
716+ " TENTACLES" : " Instead of a single arm it is made up of many smaller tentacles." ,
719717 };
720718 _extra_text = string (assign_text_from_tag_match (_gear_secondary));
721-
722719 } else if (_type_category == " device" ) {
723720 if (_specific_type != " Robot" ) {
724721 static _dev_primary = {
725722 " GLOW" : " It emits a sickly, red glow that unnerves those that look upon it." ,
726- " ADAMANTINE" : " The devise is seemingly built of near-pure adamantium, impressively heavy." ,
727- " GOLD" : " The devise is covered in a thin layer of gold, which glitters and shines." ,
728- " CRU" : " Many parts of the device are crumbling apart and cracking from old age."
723+ " ADAMANTINE" : " The device is seemingly built of near-pure adamantium, impressively heavy." ,
724+ " GOLD" : " The device is covered in a thin layer of gold, which glitters and shines." ,
725+ " CRU" : " Many parts of the device are crumbling apart and cracking from old age." ,
729726 };
730727 _aesthetic_text = string (assign_text_from_tag_match (_dev_primary));
731728
@@ -739,23 +736,23 @@ function ArtifactStruct(Index) constructor {
739736 " SPE" : " The statue is of a man with no eyes, ears, or nose. The teeth are rotted and mishappen." ,
740737 " DYI" : " The statue is of an angel, sagging against a spear which has pierced its heart." ,
741738 " JUM" : " It resembles a scene of small children with large heads happily jumping into a pit of magma." ,
742- " CHE" : " The statue resembles a fat grinx which smiles and looks outward with a malicious gaze."
739+ " CHE" : " The statue resembles a fat grinx which smiles and looks outward with a malicious gaze." ,
743740 };
744741 _extra_text = string (assign_text_from_tag_match (_dev_secondary));
745742 } else {
746743 static _bot_primary = {
747744 " HU" : " It is built in the likeness of an attractive human female." ,
748745 " RO" : " It is squat and fat, though tall, and has simple utilitarian limbs." ,
749- " SHI" : " The devise is covered in a thin layer of gold, which glitters and shines." ,
750- " CRU" : " It resembles a roaring, four-armed woman with abundant curves."
746+ " SHI" : " The device is covered in a thin layer of gold, which glitters and shines." ,
747+ " CRU" : " It resembles a roaring, four-armed woman with abundant curves." ,
751748 };
752749 _aesthetic_text = string (assign_text_from_tag_match (_bot_primary));
753750
754751 static _bot_secondary = {
755752 " ADAMANTINE" : " The machine is seemingly built of near-pure adamantium, impressively heavy." ,
756753 " JAD" : " The machine is built out of a type of jade, pure black, with many veins of green." ,
757754 " BRO" : " The machine is made out of a strange bronze material that seems impossibly durable." ,
758- " RUNE" : " Several glowing runes have been carved along its surfaces."
755+ " RUNE" : " Several glowing runes have been carved along its surfaces." ,
759756 };
760757 _extra_text = string (assign_text_from_tag_match (_bot_secondary));
761758 }
@@ -765,15 +762,25 @@ function ArtifactStruct(Index) constructor {
765762 if (has_tag (" MINOR" )) {
766763 _extra_text += " It is more crude and utilitarian than one might expect from an artifact." ;
767764 }
768-
765+
769766 var _taint_text = " " ;
770- if (has_tag (" chaos" )) { _taint_text = " It bears the taint of Chaos." ; }
771- if (has_tag (" daemonic" )) { _taint_text = " It is infested with a Daemonic entity. Destroying it, may cause the entity to materialize." ; }
767+ if (has_tag (" chaos" )) {
768+ _taint_text = " It bears the taint of Chaos." ;
769+ }
770+ if (has_tag (" daemonic" )) {
771+ _taint_text = " It is infested with a Daemonic entity. Destroying it, may cause the entity to materialize." ;
772+ }
772773
773774 _final_description = _mission_text;
774- if (_aesthetic_text != " " ) { _final_description += $" {_aesthetic_text}" ; }
775- if (_extra_text != " " ) { _final_description += $" {_extra_text}" ; }
776- if (_taint_text != " " ) { _final_description += $" {_taint_text}" ; }
775+ if (_aesthetic_text != " " ) {
776+ _final_description += $" {_aesthetic_text}" ;
777+ }
778+ if (_extra_text != " " ) {
779+ _final_description += $" {_extra_text}" ;
780+ }
781+ if (_taint_text != " " ) {
782+ _final_description += $" {_taint_text}" ;
783+ }
777784
778785 if (equipped () && is_array (bearer)) {
779786 var _unit = fetch_unit (bearer);
0 commit comments