Xiaochuang Yuan commited on
Commit
042ff28
·
1 Parent(s): d4148f9

Bucket B: glossary entries for mslo / heli / tanya / dd

Browse files

test_every_active_pack_code_has_a_glossary_entry was failing because
five active packs (spec-nuke-strike, spec-tanya-c4-strike,
combat-tanya-vs-rush, combat-heli-flank, spec-engineer-capture,
combat-naval-shore-strike) reference actor codes the ACTOR_GLOSSARY
didn't translate.

Add EN entries to ACTOR_GLOSSARY and matching ZH entries to _ACTOR_ZH:

- mslo: Missile Silo (Soviet superweapon)
- heli: Hind attack helicopter (Soviet aircraft)
- tanya: Allied hero commando (pistol vs infantry, C4 vs buildings)
- dd: Destroyer (Allied naval shore bombardment)

Files changed (1) hide show
  1. openra_bench/game_knowledge.py +12 -2
openra_bench/game_knowledge.py CHANGED
@@ -30,6 +30,8 @@ ACTOR_GLOSSARY: dict[str, str] = {
30
  "medi": "field medic (heals nearby infantry; unarmed)",
31
  "spy": "spy (infiltrates enemy buildings)",
32
  "thf": "thief (steals enemy credits)",
 
 
33
  # vehicles
34
  "jeep": "ranger/jeep (fast, light, ideal scout)",
35
  "1tnk": "light tank (medium armour, anti-vehicle)",
@@ -41,6 +43,11 @@ ACTOR_GLOSSARY: dict[str, str] = {
41
  "harv": "ore harvester (gathers ore for credits; unarmed)",
42
  "mcv": "mobile construction vehicle (deploys into a fact)",
43
  "lst": "landing craft / transport",
 
 
 
 
 
44
  # buildings
45
  "fact": "construction yard (builds structures; LOSS-CRITICAL base)",
46
  "powr": "power plant (supplies power to structures)",
@@ -58,6 +65,8 @@ ACTOR_GLOSSARY: dict[str, str] = {
58
  "brik": "concrete wall (inert obstacle; no weapon — channels but does not kill)",
59
  "tsla": "Tesla coil (powerful anti-everything defence)",
60
  "sam": "SAM site (anti-air defence)",
 
 
61
  }
62
 
63
  GAME_MODEL = (
@@ -333,17 +342,18 @@ _DIRECTION_ZH = {
333
  _ACTOR_ZH = {
334
  "e1": "步枪兵", "e2": "掷弹兵", "e3": "火箭兵",
335
  "e6": "工程师", "dog": "军犬", "medi": "医疗兵",
336
- "spy": "间谍", "thf": "小偷",
337
  "jeep": "吉普车", "1tnk": "轻型坦克", "2tnk": "中型坦克",
338
  "3tnk": "重型坦克", "4tnk": "猛犸坦克",
339
  "apc": "装甲运兵车", "arty": "火炮", "harv": "采矿车",
340
  "mcv": "基地车", "lst": "登陆艇",
 
341
  "fact": "建造厂", "powr": "发电厂", "apwr": "高级发电厂",
342
  "proc": "矿石精炼厂", "barr": "苏军兵营", "tent": "盟军兵营",
343
  "weap": "战车工厂", "fix": "维修站", "dome": "雷达",
344
  "silo": "矿石仓库", "mine": "矿场",
345
  "gun": "防御炮塔", "pbox": "碉堡", "tsla": "磁暴线圈",
346
- "sam": "防空导弹",
347
  }
348
 
349
 
 
30
  "medi": "field medic (heals nearby infantry; unarmed)",
31
  "spy": "spy (infiltrates enemy buildings)",
32
  "thf": "thief (steals enemy credits)",
33
+ "tanya": "Tanya (Allied hero commando; pistol vs infantry, "
34
+ "C4 vs buildings)",
35
  # vehicles
36
  "jeep": "ranger/jeep (fast, light, ideal scout)",
37
  "1tnk": "light tank (medium armour, anti-vehicle)",
 
43
  "harv": "ore harvester (gathers ore for credits; unarmed)",
44
  "mcv": "mobile construction vehicle (deploys into a fact)",
45
  "lst": "landing craft / transport",
46
+ # naval
47
+ "dd": "destroyer (Allied naval; ranged shore bombardment)",
48
+ # aircraft
49
+ "heli": "Hind attack helicopter (flies over terrain/buildings; "
50
+ "anti-ground)",
51
  # buildings
52
  "fact": "construction yard (builds structures; LOSS-CRITICAL base)",
53
  "powr": "power plant (supplies power to structures)",
 
65
  "brik": "concrete wall (inert obstacle; no weapon — channels but does not kill)",
66
  "tsla": "Tesla coil (powerful anti-everything defence)",
67
  "sam": "SAM site (anti-air defence)",
68
+ "mslo": "missile silo (Soviet superweapon; launches a single "
69
+ "high-damage nuke at a target cell after a charge cycle)",
70
  }
71
 
72
  GAME_MODEL = (
 
342
  _ACTOR_ZH = {
343
  "e1": "步枪兵", "e2": "掷弹兵", "e3": "火箭兵",
344
  "e6": "工程师", "dog": "军犬", "medi": "医疗兵",
345
+ "spy": "间谍", "thf": "小偷", "tanya": "谭雅",
346
  "jeep": "吉普车", "1tnk": "轻型坦克", "2tnk": "中型坦克",
347
  "3tnk": "重型坦克", "4tnk": "猛犸坦克",
348
  "apc": "装甲运兵车", "arty": "火炮", "harv": "采矿车",
349
  "mcv": "基地车", "lst": "登陆艇",
350
+ "dd": "驱逐舰", "heli": "雌鹿武装直升机",
351
  "fact": "建造厂", "powr": "发电厂", "apwr": "高级发电厂",
352
  "proc": "矿石精炼厂", "barr": "苏军兵营", "tent": "盟军兵营",
353
  "weap": "战车工厂", "fix": "维修站", "dome": "雷达",
354
  "silo": "矿石仓库", "mine": "矿场",
355
  "gun": "防御炮塔", "pbox": "碉堡", "tsla": "磁暴线圈",
356
+ "sam": "防空导弹", "mslo": "核弹发射井",
357
  }
358
 
359