Module: Lich::Gemstone::Infomon::Parser::Pattern Private

Defined in:
documented/gemstone/infomon/parser.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Namespace for regex patterns that match game output lines.

Patterns are grouped by category: character stats, experience, skills, PSM (Profession Specialization Maneuvers), resources, wealth, status effects, spells, and enhancives. Each pattern uses named captures to extract game state.

Constant Summary collapse

CharRaceProf =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Regex patterns grouped for Info, Exp, Skill and PSM parsing - calls upsert_batch to reduce db impact

/^Name:\s+(?<name>[A-z\s'-]+)\s+Race:\s+(?<race>[A-z]+|[A-z]+(?: |-)[A-z]+)\s+Profession:\s+(?<profession>[-A-z]+)/.freeze
CharGenderAgeExpLevel =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Gender:\s+(?<gender>[A-z]+)\s+Age:\s+(?<age>[,0-9]+)\s+Expr:\s+(?<experience>[0-9,]+)\s+Level:\s+(?<level>[0-9]+)/.freeze
Stat =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Matches both 'info' (2 columns) and 'info full' (3 columns with base stats) Base stats are optional - only present in 'info full' output

/^\s*(?<stat>[A-z]+)\s\((?:STR|CON|DEX|AGI|DIS|AUR|LOG|INT|WIS|INF)\):(?:\s+(?<base_value>\d+)\s+\((?<base_bonus>-?\d+)\)\s+[.]{3})?\s+(?<value>[0-9]+)\s\((?<bonus>-?[0-9]+)\)\s+[.]{3}\s+(?<enhanced_value>\d+)\s+\((?<enhanced_bonus>-?\d+)\)/.freeze
StatEnd =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Mana:\s+-?\d+\s+Silver:\s(?<silver>-?[\d,]+)$/.freeze
Fame =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

serves as ExprStart

/^\s+Level: \d+\s+Fame: (?<fame>-?[\d,]+)$/.freeze
RealExp =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%r{^\s+Experience: [\d,]+\s+Field Exp: (?<fxp_current>[\d,]+)/(?<fxp_max>[\d,]+)$}.freeze
AscExp =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+Ascension Exp: (?<ascension_experience>[\d,]+)\s+Recent Deaths: [\d,]+$/.freeze
TotalExp =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+Total Exp: (?<total_experience>[\d,]+)\s+Death's Sting: (?<deaths_sting>None|Light|Moderate|Sharp|Harsh|Piercing|Crushing)$/.freeze
LTE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Matches the Long-Term Exp line from character status.

Captures the player's accumulated long-term experience (for exp penalty recovery) and deed count. Appears in the experience section of character info.

Examples:

"  Long-Term Exp: 50,000  Deeds: 3" =~ LTE
#=> Regexp.last_match[:long_term_experience] #=> "50,000"
#=> Regexp.last_match[:deeds] #=> "3"

Returns:

  • (Regexp) —

    pattern with named captures: long_term_experience, deeds

See Also:

/^\s+Long-Term Exp: (?<long_term_experience>[\d,]+)\s+Deeds: (?<deeds>\d+)$/.freeze
ExprEnd =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+Exp (?:until lvl|to next TP): -?[\d,]+/.freeze
SkillStart =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s\w+\s\(at level \d+\), your current skill bonuses and ranks/.freeze
Skill =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>[[a-zA-Z]\s\-']+)\.+\|\s+(?<bonus>\d+)\s+(?<ranks>\d+)/.freeze
SpellRanks =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>[\w\s\-']+)\.+\|\s+(?<rank>\d+).*$/.freeze
SkillEnd =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Training Points: \d+ Phy \d+ Mnt/.freeze
GoalsDetected =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Skill goals updated!$/.freeze
GoalsEnded =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Further information can be found in the FAQs\.$/.freeze
InnCheckedOut =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Leaving your room, you check back out of .*, wander over to the front desk and hand the room key back to the innkeeper\./.freeze
PSMStart =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\w+, the following (?<cat>Ascension Abilities|Armor Specializations|Combat Maneuvers|Feats|Shield Specializations|Weapon Techniques) are available:$/.freeze
PSM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Matches a single PSM (Combat Maneuver, Feat, Specialization, Technique) ability line.

Captures the ability name, its command, current ranks, and max ranks from the output of commands like COMBAT MANEUVERS, FEATS, or armor/shield/weapon lists.

Examples:

"  Shield Bash     shieldbash  3/5" =~ PSM
#=> Regexp.last_match[:name] #=> "Shield Bash"
#=> Regexp.last_match[:command] #=> "shieldbash"
#=> Regexp.last_match[:ranks] #=> "3"
#=> Regexp.last_match[:max] #=> "5"

Returns:

  • (Regexp) —

    pattern with named captures: name, command, ranks, max

See Also:

/^\s+(?<name>[A-z\s\-':]+)\s+(?<command>[a-z]+)\s+(?<ranks>\d+)\/(?<max>\d+).*$/.freeze
PSMEnd =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^   Subcategory: all$/.freeze
Levelup =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Single / low impact - single db write

/^\s+(?<stat>\w+)\s+\(\w{3}\)\s+:\s+(?<value>\d+)\s+(?:\+1)\s+\.\.\.\s+(?<bonus>\d+)(?:\s+\+1)?$/.freeze
SpellsSolo =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

from SPELL command

/^(?<name>Bard|Cleric|Empath|Minor (?:Elemental|Mental|Spiritual)|Major (?:Elemental|Mental|Spiritual)|Paladin|Ranger|Savant|Sorcerer|Wizard)(?: Base)?\.+(?<rank>\d+).*$/.freeze
Citizenship =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You currently have .*? citizenship in (?<town>.*)\.$/.freeze
NoCitizenship =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You don't seem to have citizenship\./.freeze
Society =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+You are a (?<standing>Master|member) (?:in|of) the (?<society>Order of Voln|Council of Light|Guardians of Sunfist)(?: at (?:rank|step) (?<rank>[0-9]+))?\.$/.freeze
NoSociety =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+You are not a member of any society at this time./.freeze
SocietyStep =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^(?:Zarak|Faylanna|Draelox|Marl|Vindar|Taryn|Meaha|Oxanna|Cyndelle) traces the outline of a sigil into the air before you and says|^The High Taskmaster looks at you, consults (?:her|his) notes, and then announces in a loud voice|^The monk concludes ceremoniously,/.freeze
SocietyJoin =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^The Grandmaster says, "Welcome to the Order|^The Grandmaster says, "You are now a member of the Guardians of Sunfist|^The Grand Poohbah smiles broadly.  "Welcome to the Lodge," he cries/.freeze
SocietyResign =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^The Grandmaster says, "I'm sorry to hear that.  You are no longer in our service.|^The Poohbah looks at you sternly.  "I had high hopes for you," he says, "but if this be your decision, so be it\.  I hereby strip you of membership|^The Grandmaster says, "I'm sorry to hear that,.+I wish you well with any of your future endeavors./.freeze
Warcries =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>(?:Bertrandt's Bellow|Yertie's Yowlp|Gerrelle's Growl|Seanette's Shout|Carn's Cry|Horland's Holler))$/.freeze
NoWarcries =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You must be an active member of the Warrior Guild to use this skill\.$/.freeze
LearnPSM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You have now achieved rank (?<rank>\d+) of (?<psm>[A-z\s]+), costing \d+ (?<cat>[A-z]+) .*?points\.$/
LearnTechnique =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Technique covers Specialization (Armor and Shield), Technique (Weapon), and Feat

/^\[You have (?:gained|increased to) rank (?<rank>\d+) of (?<cat>[A-z]+).*: (?<psm>[A-z\s\-':]+)\.\]$/.freeze
UnlearnPSM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You decide to unlearn rank (?<rank>\d+) of (?<psm>[A-z\s\-':]+), regaining \d+ (?<cat>[A-z]+) .*?points\.$/
UnlearnTechnique =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\[You have decreased to rank (?<rank>\d+) of (?<cat>[A-z]+).*: (?<psm>[A-z\s\-':]+)\.\]$/.freeze
LostTechnique =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\[You are no longer trained in (?<cat>[A-z]+) .*: (?<psm>[A-z\s\-':]+)\.\]$/.freeze
Resource =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^(?:Essence|Necrotic Energy|Lore Knowledge|Motes of Tranquility|Devotion|Nature's Grace|Grit|Luck Inspiration|Guile|Vitality): (?<weekly>[0-9,]+)\/50,000 \(Weekly\)\s+(?<total>[0-9,]+)\/200,000 \(Total\)$/.freeze
Suffused =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Suffused (?<type>(?:Essence|Necrotic Energy|Lore Knowledge|Motes of Tranquility|Devotion|Nature's Grace|Grit|Luck Inspiration|Guile|Vitality)): (?<suffused>[0-9,]+)$/.freeze
VolnFavor =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Voln Favor: (?<favor>[-\d,]+)$/.freeze
CovertArtsCharges =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Covert Arts Charges: (?<charges>[-\d,]+)\/200$/.freeze
ShadowEssence =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Accumulated Shadow (?:E|e)ssence: (?<essence>\d)/.freeze
ShadowEssenceGain =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You violently shatter the bond on the soul of the .+\.  As you draw it into yourself, you manipulate the chaotic and broken life forces, forming shadow essence\./.freeze
ShadowEssenceCap =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You begin to sacrifice your victim but immediately sense that it would overwhelm you with shadow essence\./.freeze
SacrificeMana =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You summon the shadow essence from the inner depths of your body, surrounding yourself in a dark halo of power\.  You will the shadows into the eddies and currents of the flows of essence around you, spreading through them like blackened veins of corruption\.  The surroundings glow with silent anguish\.  Everything around you becomes pale and enervated with discoloration, like the life has been drained out of the world\.  There is a flood of power as you feel (?<amount>\d+) mana surge into you!$/.freeze
SacrificeChannel =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Focusing on the bond to your animate, you force shadow essence into .+, leveraging its broken life forces\.  The backlash of sorcerous violence with the necrotic energy of the \w+ ends in the unnatural revitalization of its animate matter\.$/.freeze
SacrificeInfest =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Mastering the struggle against the frantic rush of stolen power, you unleash a dark haze of necrosis upon your unfortunate victim\.  With a small smirk, you force the sickly currents of shadow essence from your body, commanding them to seek and infest .+\.$/.freeze
SacrificeFate =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You close your eyes momentarily and visualize the strands of fate that tie together the firmament\.  Identifying a susceptible star, you compel the shadow essence within you to corrupt it\.$/.freeze
SacrificeShift =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Summoning the shadow essence within yourself, you will it to bleed through the veil, exposing your mind to the vast abyss of cosmic horror\.  Countless possible gateways reveal themselves, with runes hidden in the fabric of reality\.$/.freeze
GigasArtifactFragments =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You are carrying (?<gigas_artifact_fragments>[\d,]+) gigas artifact fragments?\.$/.freeze
RedsteelMarks =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^(?:\s* Redsteel Marks:           |You are carrying) (?<redsteel_marks>[\d,]+)(?: redsteel marks?\.)?$/.freeze
GemstoneDust =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You are carrying (?<gemstone_dust>[\d,]+) Dust in your reserves?\.$/.freeze
TicketGeneral =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*General - (?<tickets>[\d,]+) tickets?\.$/.freeze
TicketBlackscrip =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*Troubled Waters - (?<blackscrip>[\d,]+) blackscrip\.$/.freeze
TicketBloodscrip =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*Duskruin Arena - (?<bloodscrip>[\d,]+) bloodscrip\.$/.freeze
TicketEtherealScrip =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*Reim - (?<ethereal_scrip>[\d,]+) ethereal scrip\.$/.freeze
TicketSoulShards =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*Ebon Gate - (?<soul_shards>[\d,]+) soul shards?\.$/.freeze
TicketRaikhen =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*Rumor Woods - (?<raikhen>[\d,]+) raikhen\.$/.freeze
TicketAevit =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*Inquisitor - (?<aevit>[\d,]+) aevit\.$/.freeze
TicketGold =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*Gold - (?<gold>[\d,]+) gold\.$/.freeze
WealthSilver =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You have (?<silver>no|[,\d]+|but one) silver with you\./.freeze
WealthSilverContainer =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You are carrying (?<silver>[\d,]+) silver stored within your /.freeze
WealthSilverTotal =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You are carrying a total of (?<silver>[\d,]+) silver\.$/.freeze
WealthNotes =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Total note value: (?<silver>[\d,]+)$/.freeze
AccountName =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Account Name:     (?<name>[\w\d\-\_]+)$/.freeze
AccountSubscription =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Account Type:     (?<subscription>F2P|Standard|Premium|Platinum)(?: with Shattered)?(?: \(\w+\))?$/.freeze
ProfileStart =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^PERSONAL INFORMATION$/.freeze
ProfileName =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Name: (?<name>[\w\s]+)$/.freeze
ProfileHouseCHE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^[A-Za-z\- ]+? (?:of House of the |of House of |of House |of )(?<house>Argent Aspis|Rising Phoenix|Paupers|Arcane Masters|Brigatta|Twilight Hall|Silvergate Inn|Sovyn|Sylvanfair|Helden Hall|White Haven|Beacon Hall|Rone Academy|Willow Hall|Moonstone Abbey|Obsidian Tower|Cairnfang Manor)(?: Archive)?$|^(?<none>No House affiliation)$/.freeze
ResignCHE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^(?:Once you have resigned from your House, you will be unable to rejoin without being inducted again by the |If you wish to renounce your membership in the |Before you can resign from the )(?:House |of House of the |of House of |of House |of )?(?<house>Argent Aspis|Rising Phoenix|Paupers|Arcane Masters|Brigatta|Twilight Hall|Silvergate Inn|Sovyn|Sylvanfair|Helden Hall|White Haven|Beacon Hall|Rone Academy|Willow Hall|Moonstone Abbey|Obsidian Tower|Cairnfang Manor)(?: Archive)?|^(?<none>The RESIGN command is for resigning your membership in a House, but you don't currently belong to any of the Cooperative Houses of Elanthia)\.$/.freeze
ResignConfirmCHE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\[You have resigned from the (?:House |of House of the |of House of |of House |of )?(?<house>Argent Aspis|Rising Phoenix|Paupers|Arcane Masters|Brigatta|Twilight Hall|Silvergate Inn|Sovyn|Sylvanfair|Helden Hall|White Haven|Beacon Hall|Rone Academy|Willow Hall|Moonstone Abbey|Obsidian Tower|Cairnfang Manor)(?: Archive)?\.\]$/.freeze
SleepActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

TODO: refactor / streamline?

/^Your mind goes completely blank\.$|^You close your eyes and slowly drift off to sleep\.$|^You slump to the ground and immediately fall asleep\.  You must have been exhausted!$|^That is impossible to do while unconscious$/.freeze
SleepNoActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Your thoughts slowly come back to you as you find yourself lying on the ground\.  You must have been sleeping\.$|^You wake up from your slumber\.$|^You are awoken|^You awake|^You slowly come back to alertness and realize you must have been sleeping\.$/.freeze
BindActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^An unseen force (?:envelops|entangles) you, restricting (?:all|your) movement|^You are caught fast, the light of (?:Liabo|Lornon|Tilaok|Makiri|the moon) arresting your movements/.freeze
BindNoActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^The restricting force that envelops you dissolves away\.|^You shake off the immobilization that was restricting your movements!|^The restricting force enveloping you fades away\./.freeze
SilenceActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^A pall of silence settles over you\.|^The pall of silence settles more heavily over you\./.freeze
SilenceNoActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^The pall of silence leaves you\./.freeze
CalmActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^A calm washes over you\./.freeze
CalmNoActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You are enraged by .*? attack!|^The feeling of calm leaves you\./.freeze
CutthroatActiveMid =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

mid-line: cannot be part of the anchored fast path

/slices deep into your vocal cords!$/.freeze
CutthroatActiveStart =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^All you manage to do is cough up some blood\.$/.freeze
CutthroatActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Regexp.union(CutthroatActiveMid, CutthroatActiveStart).freeze
CutthroatNoActive =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s*The horrible pain in your vocal cords subsides as you spit out the last of the blood clogging your throat\.$|^That tingles, but there are no head injuries to repair\.$/.freeze
ThornPoisonStart =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^One of the vines surrounding .*? lashes out at you, driving a thorn into your skin!  You feel poison coursing through your veins\.$/.freeze
ThornPoisonProgression =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You begin to feel a strange fatigue, spreading throughout your body\.$|^The strange lassitude is growing worse, making it difficult to keep up with any strenuous activities\.$|^You find yourself gradually slowing down, your muscles trembling with fatigue\.$|^It\'s getting increasingly difficult to move. It feels almost as if the air itself is growing thick as molasses\.$|^No longer able to fight this odd paralysis, you collapse to the ground, as limp as an old washrag\.$/.freeze
ThornPoisonDeprogression =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^With a shaky gasp and trembling muscles, you regain at least some small ability to move, however slowly\.$|Although you can\'t seem to move as quickly as you usually can, you\'re feeling better than you were just moments ago\.$|^Fine coordination is difficult, but at least you can move at something close to your normal speed again\.$|^While you\'re still a bit shaky, your muscles are responding better than they were\.$/.freeze
ThornPoisonEnd =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Your body begins to respond normally again\.$|^Your skin takes on a more pinkish tint\.$/.freeze
SpellUpMsgs =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Adding spell regexes. Does not save to infomon.db. Used by Spell and by ActiveSpells

/^#{Lich::Common::Spell.upmsgs.join('$|^')}$/o.freeze
SpellDnMsgs =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^#{Lich::Common::Spell.dnmsgs.join('$|^')}$/o.freeze
SpellTargetUpMsgs =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Spells that name the character they land on. The alternation is empty when no spell carries a target-start message, and an empty union would match every line, so fall back to a pattern that matches nothing.

(Lich::Common::Spell.target_upmsgs.empty? ? /(?!)/ : /^#{Lich::Common::Spell.target_upmsgs.join('$|^')}$/o).freeze
SpellsongRenewed =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Your songs? renews?/.freeze
EnhanciveStart =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Enhancive parsing patterns - from INVENTORY ENHANCIVE TOTALS command

/^Stats:$/.freeze
EnhanciveStat =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<stat>Strength|Constitution|Dexterity|Agility|Discipline|Aura|Logic|Intuition|Wisdom|Influence)\s+\((?<abbr>\w{3})\):\s*(?<value>\d+)\/(?<cap>\d+)$/.freeze
EnhanciveSkillsSection =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Skills:$/.freeze
EnhanciveSkillRanks =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>[\w\s\-']+?)\s+Ranks:\s*(?<value>\d+)\/(?<cap>\d+)$/.freeze
EnhanciveSkillBonus =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>[\w\s\-']+?)\s+Bonus:\s*(?<value>\d+)\/(?<cap>\d+)$/.freeze
EnhanciveResourcesSection =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Resources:$/.freeze
EnhanciveResource =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>[\w\s]+?):\s+(?<value>\d+)\/(?<cap>\d+)$/.freeze
EnhanciveMartialSection =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Martial Knowledge Skills:$/.freeze
EnhanciveMartialSkill =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>[\w\s']+?):\s+\+(?<value>\d+)\s+ranks?$/.freeze
EnhanciveSpellsSection =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Self Knowledge Spells:$/.freeze
EnhanciveSpells =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<spells>[\d,\s]+)$/.freeze
EnhanciveStatisticsSection =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^Statistics:$/.freeze
EnhanciveStatistic =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^\s+(?<name>Enhancive Items|Enhancive Properties|Total Enhancive Amount):\s*(?<value>\d+)$/.freeze
EnhanciveEnd =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^For (?:more|fewer) details, see INVENTORY ENHANCIVE TOTALS(?: DETAILS)?\.$/.freeze
EnhanciveNone =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^No enhancive item bonuses found\.$/.freeze
EnhanciveOn =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Enhancive active state tracking (on/off)

/^You are (?:now|already|currently) accepting the benefits of (?:your|any and all) enhancive (?:inventory )?items(?: in your inventory)?\./.freeze
EnhanciveOff =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You (?:are no longer|already are not|are not currently) accepting the benefit(?:s)? of (?:your|any) enhancive (?:inventory )?items(?: in your inventory)?\./.freeze
EnhancivePauses =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/^You currently have (?<pauses>\d+) enhancive pauses? available\.$/.freeze
ALL_LIST =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

List of all regex patterns used by Parser.parse for fast-path guarding.

These patterns are anchored to line start (^) and compiled into a union (AllStart) to enable O(1) matching: the regex engine attempts the match only at position 0 instead of scanning every position. Mid-line patterns that cannot use line-start anchoring are handled separately (AllMid).

Returns:

  • (Array<Regexp>) —

    all documented patterns, frozen

See Also:

[CharRaceProf, CharGenderAgeExpLevel, Stat, StatEnd, Fame, RealExp, AscExp, TotalExp, LTE,
ExprEnd, SkillStart, Skill, SpellRanks, SkillEnd, PSMStart, PSM, PSMEnd, Levelup, SpellsSolo,
Citizenship, NoCitizenship, Society, NoSociety, SleepActive, SleepNoActive, BindActive,
BindNoActive, SilenceActive, SilenceNoActive, CalmActive, CalmNoActive, CutthroatActiveStart,
CutthroatNoActive, SpellUpMsgs, SpellTargetUpMsgs, SpellDnMsgs, Warcries, NoWarcries, SocietyJoin, SocietyStep,
SocietyResign, LearnPSM, UnlearnPSM, LostTechnique, LearnTechnique, UnlearnTechnique,
Resource, Suffused, VolnFavor, GigasArtifactFragments, RedsteelMarks, TicketGeneral, TicketGold,
TicketBlackscrip, TicketBloodscrip, TicketEtherealScrip, TicketSoulShards, TicketRaikhen, TicketAevit,
WealthSilver, WealthSilverContainer, WealthSilverTotal, WealthNotes, GoalsDetected, GoalsEnded, InnCheckedOut, SpellsongRenewed,
ThornPoisonStart, ThornPoisonProgression, ThornPoisonDeprogression, ThornPoisonEnd, CovertArtsCharges,
AccountName, AccountSubscription, ProfileStart, ProfileName, ProfileHouseCHE, ResignCHE, ResignConfirmCHE,
ShadowEssence, ShadowEssenceGain, ShadowEssenceCap, SacrificeMana, SacrificeChannel, SacrificeInfest,
SacrificeFate, SacrificeShift, GemstoneDust, EnhanciveStart, EnhanciveStat, EnhanciveSkillsSection,
EnhanciveSkillRanks, EnhanciveSkillBonus, EnhanciveResourcesSection, EnhanciveResource,
EnhanciveMartialSection, EnhanciveMartialSkill, EnhanciveSpellsSection, EnhanciveSpells,
EnhanciveStatisticsSection, EnhanciveStatistic, EnhanciveEnd, EnhanciveNone,
EnhanciveOn, EnhanciveOff, EnhancivePauses].freeze
AllMid =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Mid-line patterns are matched anywhere in the line, so they cannot be part of the \A-anchored fast path. Add future mid-line patterns here (wrap in Regexp.union for more than one); the Parser.parse guard does not change.

CutthroatActiveMid
AllStart =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Fast-path guard for Parser.parse. Every pattern in ALL_LIST is anchored to the start of the line, so anchoring the union with \A lets the engine attempt it only at position 0 instead of scanning every position of long (usually non-matching) lines -- that scan was ~half of all server-thread CPU. Mid-line patterns (AllMid) keep their own scanning check.

Regexp.new('\A(?:' + Regexp.union(ALL_LIST).source + ')').freeze