Module: Lich::DragonRealms::DRDefsPattern
- Defined in:
- documented/dragonrealms/drinfomon/drdefs.rb
Constant Summary collapse
- TRAILING_AND =
Pattern to extract the final "and X" portion of room player lists Pattern to extract the final "and X" portion of room player lists.
/ and (?<last>.*)$/.freeze
- PLAYER_STATUS =
Pattern to match player status descriptions Pattern to match player status descriptions.
/ (who|whose body)? ?(has|is|appears|glows) .+/.freeze
- PARENTHETICAL =
Pattern to match parenthetical info after player names Pattern to match parenthetical info after player names.
/ \(.+\)/.freeze
- PLAYER_NAME =
Pattern to extract player name (word characters at end) Pattern to extract player name (word characters at end).
/\w+$/.freeze
- LYING_DOWN =
Pattern for lying down players Pattern for lying down players.
/who is lying down/i.freeze
- SITTING =
Pattern for sitting players Pattern for sitting players.
/who is sitting/i.freeze
- YOU_ALSO_SEE =
Pattern for "You also see" prefix Pattern for "You also see" prefix.
/You also see/.freeze
- MOUNT_DESCRIPTION =
Pattern for mount descriptions Pattern for mount descriptions.
/ with a [\w\s]+ sitting astride its back/.freeze
- NPC_SCAN =
Pattern to find NPCs in room objects (bold tags indicate creatures) Pattern to find NPCs in room objects (bold tags indicate creatures).
%r{<pushBold/>[^<>]*<popBold/> which appears dead|<pushBold/>[^<>]*<popBold/> \(dead\)|<pushBold/>[^<>]*<popBold/>}.freeze
- DEAD_NPC =
Pattern for dead NPCs Pattern for dead NPCs.
/which appears dead|\(dead\)/.freeze
- PUSH_BOLD =
Pattern for pushBold tags (indicates creature, not object) Pattern for pushBold tags (indicates creature, not object).
/pushBold/.freeze
- LEADING_ARTICLE =
Pattern for leading articles Pattern for leading articles.
/^(a|some) /.freeze
- TRAILING_PERIOD =
Pattern for trailing period Pattern for trailing period.
/\.$/.freeze
- COMMA_OR_AND =
Pattern for splitting on comma or "and" Pattern for splitting on comma or "and".
/,|\sand\s/.freeze
- CREATURE_NAME =
Pattern for extracting creature name (letters, hyphens, apostrophes only) Note: Using [A-Za-z] instead of [A-z] to avoid matching []^_` characters Pattern for extracting creature name (letters, hyphens, apostrophes only).
/[A-Za-z'-]+$/.freeze
- WHO_STATUS =
Pattern for "who has/is" descriptions Pattern for "who has/is" descriptions.
/ who (has|is) .+/.freeze
- GLOWING_WITH =
Pattern for "glowing with" modifiers Pattern for "glowing with" modifiers.
/(?:\sglowing)?\swith\s.*/.freeze
- GELAPOD =
Gelapod replacement pattern Gelapod replacement pattern.
"<pushBold/>a domesticated gelapod<popBold/>".freeze
- GELAPOD_REPLACEMENT =
'domesticated gelapod'.freeze
- ALFAR_WARRIOR_PATTERN =
Creature name normalization patterns (creatures with variant descriptions) Creature name normalization patterns (creatures with variant descriptions).
/.*alfar warrior.*/.freeze
- SINEWY_LEOPARD_PATTERN =
Creature name normalization patterns (creatures with variant descriptions).
/.*sinewy leopard.*/.freeze
- LESSER_NAGA_PATTERN =
Creature name normalization patterns (creatures with variant descriptions).
/.*lesser naga.*/.freeze