diff --git a/assets/json/library.json b/assets/json/library.json index 1c74c32..f981d0e 100644 --- a/assets/json/library.json +++ b/assets/json/library.json @@ -523,6 +523,10 @@ "file": "po-r3", "name": "Pick off - C to 3B (R3)" }, + { + "file": "pocs-r1-1364", + "name": "Pick off + Caught stealing - P to 1B to SS to 2B (R1)" + }, { "file": "error-poa-r1", "name": "Pick off attempt - e1T (R1)" diff --git a/assets/lang/cs.json b/assets/lang/cs.json index b2d01f1..573afa6 100644 --- a/assets/lang/cs.json +++ b/assets/lang/cs.json @@ -179,7 +179,8 @@ "POE" : "Picked off attempt + (throwing) error", "POEN" : "Picked off attempt + (throwing) error (no advance)", "CSO" : "Caught stealing", - "PO" : "Picked off" + "PO" : "Picked off", + "POCS" : "Picked off + caught stealing" }, "out" : { "title" : "Aut", diff --git a/assets/lang/en.json b/assets/lang/en.json index f0da537..e4524ad 100644 --- a/assets/lang/en.json +++ b/assets/lang/en.json @@ -179,7 +179,8 @@ "POE" : "Picked off attempt with (throwing) error", "POEN" : "Picked off attempt with (throwing) error (no advance)", "CSO" : "Caught stealing", - "PO" : "Picked off" + "PO" : "Picked off", + "POCS" : "Picked off + caught stealing" }, "out" : { "title" : "Out", diff --git a/backstop_data/bitmaps_reference/action-pocs-r1-1364_m.png b/backstop_data/bitmaps_reference/action-pocs-r1-1364_m.png new file mode 100644 index 0000000..09db0db Binary files /dev/null and b/backstop_data/bitmaps_reference/action-pocs-r1-1364_m.png differ diff --git a/public/json/pocs-r1-1364.json b/public/json/pocs-r1-1364.json new file mode 100644 index 0000000..dd4234b --- /dev/null +++ b/public/json/pocs-r1-1364.json @@ -0,0 +1 @@ +[{"group":"input-r1","baseAction":"ste","specAction":"POCS","origBase":1,"base":2,"tie":false,"runtype":"e","pos":"1364"}] \ No newline at end of file diff --git a/utils/wbsc-eval.ts b/utils/wbsc-eval.ts index bc0222e..314933b 100644 --- a/utils/wbsc-eval.ts +++ b/utils/wbsc-eval.ts @@ -262,6 +262,7 @@ function changeRunnerSpecificAction (group: string) { minPosItems = targetPosItems = 2 break case 'CSO': + case 'POCS': case 'GO': case 'GOT': out = true @@ -592,7 +593,8 @@ function processInput (input: WBSCInput, batter: number): WBSCOutput { break case 'CSO': case 'PO': - output.text1 = action.substring(0, 2) + case 'POCS': + output.text1 = action === 'CSO' ? action.substring(0, 2) : action output.text2 = pos output.out = true output.num = true diff --git a/utils/wbsc-html.ts b/utils/wbsc-html.ts index e287c27..2381778 100644 --- a/utils/wbsc-html.ts +++ b/utils/wbsc-html.ts @@ -363,6 +363,7 @@ function renderRunnerSpecificActionOptions (action: string, group: string) { options.push(``) options.push(``) options.push(``) + options.push(``) options.push('') break case 'fdc': diff --git a/utils/wbsc-output.ts b/utils/wbsc-output.ts index 8331029..e137cc2 100644 --- a/utils/wbsc-output.ts +++ b/utils/wbsc-output.ts @@ -449,14 +449,16 @@ function writeSituation (output: WBSCOutput) { row1font = row2font = FONT_B2_LARGE row1offset = 45 row2offset = 6 - if (text1.length > 2) { + if (text1.length > 3) { + row1font = row2font = FONT_B2_SMALL + } else if (text1.length > 2) { row1font = row2font = FONT_B2_MEDIUM } - if (text2.length > 3) { + if (text2.length > 4) { row1offset = 35 row2offset = 2 row2font = FONT_B2_TINY - } else if (text2.length > 2) { + } else if (text2.length > 3) { row1offset = 40 row2offset = 4 row2font = FONT_B2_SMALL