From 9067c723674646e9e8b6f62e170e87375919d7c5 Mon Sep 17 00:00:00 2001 From: Derek Hoffmann Date: Sun, 6 Oct 2024 16:03:36 -0400 Subject: [PATCH 1/2] [script] [textsubs.lic] add metal volumes on supply deport order board --- textsubs.lic | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/textsubs.lic b/textsubs.lic index 8b3d32bfa6..4b0603ba6d 100644 --- a/textsubs.lic +++ b/textsubs.lic @@ -1247,4 +1247,26 @@ TextSubs.add('ability has made you (a|an) peerless crafter within the Society', TextSubs.add('ability has made you (a|an) illustrious crafter within the Society', 'ability has made you \1 illustrious (13/14) crafter within the Society') TextSubs.add('ability has made you (a|an) legendary crafter within the Society', 'ability has made you \1 legendary (14/14) crafter within the Society') +# Display volumes for metal crafting supplies on the order board - need to be in two groups to cover fixed width +TextSubs.add('^(\d)\)\. a tiny (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (1) tiny \2 \3\4 \5 \6') +TextSubs.add('^(\d)\)\. a small (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (2) small \2 \3\4 \5 \6') +TextSubs.add('^(\d)\)\. a medium (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (3) medium \2 \3\4 \5 \6') +TextSubs.add('^(\d)\)\. a large (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (4) large \2 \3\4 \5 \6') +TextSubs.add('^(\d)\)\. a huge (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (5) huge \2 \3\4 \5 \6') +TextSubs.add('^(\d)\)\. a massive (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (10) massive \2 \3\4 \5 \6') +TextSubs.add('^(\d)\)\. an enormous (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). an (20) enormous \2 \3\4. \5 \6') +TextSubs.add('^(\d)\)\. an immense (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). an (50) immense \2 \3\4. \5 \6') +TextSubs.add('^(\d)\)\. a gigantic (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (100) gigantic \2 \3\4 \5 \6') +TextSubs.add('^(\d)\)\. a colossal (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (200) colossal \2 \3\4 \5 \6') +TextSubs.add('^(\d\d)\)\. a tiny (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (1) tiny \2 \3\4. \5 \6') +TextSubs.add('^(\d\d)\)\. a small (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (2) small \2 \3\4. \5 \6') +TextSubs.add('^(\d\d)\)\. a medium (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (3) medium \2 \3\4. \5 \6') +TextSubs.add('^(\d\d)\)\. a large (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (4) large \2 \3\4. \5 \6') +TextSubs.add('^(\d\d)\)\. a huge (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (5) huge \2 \3\4. \5 \6') +TextSubs.add('^(\d\d)\)\. a massive (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (10) massive \2 \3\4. \5 \6') +TextSubs.add('^(\d\d)\)\. an enormous (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). an (20) enormous \2 \3\4.. \5 \6') +TextSubs.add('^(\d\d)\)\. an immense (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). an (50) immense \2 \3\4.. \5 \6') +TextSubs.add('^(\d\d)\)\. a gigantic (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (100) gigantic \2 \3\4. \5 \6') +TextSubs.add('^(\d\d)\)\. a colossal (\w+) (ingot|nugget)(\.+) ([\d,]+) (\w+)', '\1). a (200) colossal \2 \3\4. \5 \6') + clear until script.gets.nil? From f6a42c269080ba12beaf0caeebc271d3005a98f2 Mon Sep 17 00:00:00 2001 From: Derek Hoffmann Date: Sun, 6 Oct 2024 16:07:10 -0400 Subject: [PATCH 2/2] rubocop - disable Layout/ArgumentAlignment on EV textsubs --- textsubs.lic | 3 +++ 1 file changed, 3 insertions(+) diff --git a/textsubs.lic b/textsubs.lic index 4b0603ba6d..58e4dc910c 100644 --- a/textsubs.lic +++ b/textsubs.lic @@ -365,6 +365,8 @@ if DRStats.empath? TextSubs.add('Your (.*)\'s life force is imperceptible.', 'Your \1\'s life force is imperceptible. (8/9)') TextSubs.add('You thumb your (.*)\.', 'You thumb your \1. (9/9)') + # rubocop:disable Layout/ArgumentAlignment + # Easier reading of longer lines / comparison TextSubs.add('^The plant appears to be in good condition', 'The plant appears to be in good condition (5/5)') TextSubs.add('^The plant has some scrapes and discolorations along the leaves and stem', @@ -377,6 +379,7 @@ if DRStats.empath? 'The plant has pulled into itself under shredded leaves and oozing stems (1/5)') TextSubs.add('^The plant has coiled itself into a tight ball, the remains of its shredded leaves sticking to sap encrusted stems', 'The plant has coiled itself into a tight ball, the remains of its shredded leaves sticking to sap encrusted stems (0/5)') + # rubocop:enable Layout/ArgumentAlignment end TextSubs.add('(is|are)( of|) masterfully-crafted( quality|)', '\1\2 masterfully-crafted (12/12)\3')