diff --git a/mods/cnc/chrome/encyclopedia.yaml b/mods/cnc/chrome/encyclopedia.yaml new file mode 100644 index 0000000000..1c4432be54 --- /dev/null +++ b/mods/cnc/chrome/encyclopedia.yaml @@ -0,0 +1,85 @@ +Background@ENCYCLOPEDIA_PANEL: + Logic: EncyclopediaLogic + X: (WINDOW_RIGHT - WIDTH) / 2 + Y: (WINDOW_BOTTOM - HEIGHT) / 2 + Width: 900 + Height: 600 + Children: + Container@ENCYCLOPEDIA_CONTENT: + Width: PARENT_RIGHT - 40 + Height: PARENT_BOTTOM - 80 + X: 20 + Y: 20 + Children: + Label@ENCYCLOPEDIA_TITLE: + Width: PARENT_RIGHT + Height: 25 + Text: label-encyclopedia-title + Align: Center + Font: Bold + ScrollPanel@ACTOR_LIST: + Y: 30 + Width: 190 + Height: PARENT_BOTTOM - 25 + Children: + ScrollItem@HEADER: + Background: scrollheader + Width: PARENT_RIGHT - 27 + Height: 13 + X: 2 + Visible: false + Children: + Label@LABEL: + Font: TinyBold + Width: PARENT_RIGHT + Height: 13 + Align: Center + ScrollItem@TEMPLATE: + Width: PARENT_RIGHT - 27 + Height: 25 + X: 2 + EnableChildMouseOver: True + Children: + LabelWithTooltip@TITLE: + X: 10 + Width: PARENT_RIGHT - 20 + Height: 25 + TooltipContainer: TOOLTIP_CONTAINER + TooltipTemplate: SIMPLE_TOOLTIP + Container@ACTOR_INFO: + X: PARENT_RIGHT - WIDTH + Y: 30 + Width: PARENT_RIGHT - 190 - 10 + Height: PARENT_BOTTOM - 25 + Children: + Background@ACTOR_BG: + Width: 150 + Height: 170 + Background: dialog3 + Children: + ActorPreview@ACTOR_PREVIEW: + X: 1 + Y: 1 + Width: PARENT_RIGHT - 2 + Height: PARENT_BOTTOM - 2 + ScrollPanel@ACTOR_DESCRIPTION_PANEL: + X: 150 + 10 + Width: PARENT_RIGHT - 150 - 10 + Height: 170 + TopBottomSpacing: 8 + Children: + Label@ACTOR_DESCRIPTION: + X: 8 + Y: 8 + Width: PARENT_RIGHT - 40 + VAlign: Top + Font: Regular + Button@BACK_BUTTON: + X: PARENT_RIGHT - 180 + Y: PARENT_BOTTOM - 45 + Width: 160 + Height: 25 + Text: button-back + Font: Bold + Key: escape + TooltipContainer@TOOLTIP_CONTAINER: diff --git a/mods/cnc/chrome/mainmenu.yaml b/mods/cnc/chrome/mainmenu.yaml index ffec7d9377..f822b61aac 100644 --- a/mods/cnc/chrome/mainmenu.yaml +++ b/mods/cnc/chrome/mainmenu.yaml @@ -125,6 +125,12 @@ Container@MENU_BACKGROUND: Width: 140 Height: 35 Text: button-singleplayer-menu-load + Button@ENCYCLOPEDIA_BUTTON: + X: 300 + Y: 0 + Width: 140 + Height: 35 + Text: label-encyclopedia-title Button@BACK_BUTTON: Key: escape X: 450 diff --git a/mods/cnc/languages/chrome/en.ftl b/mods/cnc/languages/chrome/en.ftl index d0c264886a..06ae371f42 100644 --- a/mods/cnc/languages/chrome/en.ftl +++ b/mods/cnc/languages/chrome/en.ftl @@ -107,6 +107,9 @@ button-select-categories-buttons-none = None label-tool-marker-tiles = Marker Tiles +## encyclopedia.yaml, mainmenu.yaml +label-encyclopedia-title = Database + ## gamesave-browser.yaml label-gamesave-browser-panel-load-title = Load game label-gamesave-browser-panel-save-title = Save game diff --git a/mods/cnc/languages/rules/en.ftl b/mods/cnc/languages/rules/en.ftl index f1188af8b1..6566f76abb 100644 --- a/mods/cnc/languages/rules/en.ftl +++ b/mods/cnc/languages/rules/en.ftl @@ -63,6 +63,8 @@ actor-tran = .name = Chinook Transport .description = Fast Infantry Transport Helicopter. Unarmed + .encyclopedia = The chinook is a flying transport capable of carrying a detatchement of infantry. In general, it is used to transport commandos or engineers for backline-destruction. + Like all aircraft, it can be handy in a pinch to crush a commando by landing! actor-heli = .name = Apache Longbow @@ -70,12 +72,16 @@ actor-heli = Strong vs Infantry, Light Vehicles and Aircraft Weak vs Tanks + .encyclopedia = Has more health than the Orca and acts as a support unit. It works well with artillery, as it can kill any approaching light vehicles. + Ammo is automatically reloaded in the air. actor-orca = .name = Orca .description = Helicopter Gunship with AG Missiles. Strong vs Buildings, Tanks Weak vs Infantry + .encyclopedia = Fast but fragile, the Orca harasses enemy vehicles and aircraft with AT missiles. It is best used opportunistically, and can be kept alive longer with careful micro. It’s AA missiles are effective but have a hard time hitting fast-moving air targets. + Ammo is automatically reloaded in the air. actor-c17-name = Supply Aircraft actor-a10-name = A10 Bomber @@ -218,44 +224,61 @@ actor-e1 = .description = General-purpose infantry. Strong vs Infantry Weak vs Vehicles + .encyclopedia = The humble Minigunner is a highly specialized infantry unit designed to soak damage and kill other infantry. + Like most TD units, they can see farther than they can shoot, and work well in packs to eliminate enemy infantry. actor-e2 = .name = Grenadier .description = Fast infantry armed with grenades. Strong vs Buildings, slow-moving targets + .encyclopedia = Fast and able to keep up with medium tanks, letting it work well with flanking armies. + While not as powerful as the Minigunner or a Rocket soldier, its speed can be used to your advantage. actor-e3 = .name = Rocket Soldier .description = Anti-tank/Anti-aircraft infantry. Strong vs Tanks, Aircraft Weak vs Infantry + .encyclopedia = Highly vulnerable but excelling at eliminating enemy armor and aircraft. It is the slowest unit in the game, lagging behind other infantry and even mammoth tanks. + It’s large weapons range makes up for its slow speed, making it most effective when used defensively, where it can be protected and provide vision. actor-e4 = .name = Flamethrower .description = Advanced Anti-infantry unit. Strong vs Infantry, Buildings Weak vs Tanks + .encyclopedia = Good for flanking and burning down structures. It has more health than a standard Minigunner, but its short weapons range makes it difficult to for direct confrontation. actor-e5 = .name = Chemical Warrior .description = Advanced general-purpose infantry. Strong vs all Ground units + .encyclopedia = Similar stats to the Flamethrower but deals good damage vs. heavy armor. Great for stopping enemy armor from crushing your forces. + It can walk on Tiberium without taking damage, making it particularly useful for harvester harassment on certain maps. actor-e6 = .name = Engineer .description = Damages and captures enemy structures. Repairs destroyed vehicles Unarmed + .encyclopedia = Like the rocket soldier, the Engineer is slow and requires escorts to be used effectively. It can instantly capture structures but is consumed in the process. + Capturing a civilian structure requires only one engineer, while capturing an enemy structure typically requires two engineers, or one if the structure is heavily damaged. + Engineers can also be used to repair friendly structures or restotre husks from destroyed vehicles. actor-rmbo = .name = Commando .description = Elite sniper infantry unit. Strong vs Infantry, Buildings Weak vs Vehicles + .encyclopedia = Equipped with a long-range sniper rifle, the Commando fires slowly but can eliminate enemy infantry from a distance when well-supported. + It carries C4, for surprise backline structure destruction. -actor-pvice-description = Mutated abomination that spits liquid Tiberium. +actor-pvice = + .description = Mutated abomination that spits liquid Tiberium. Strong vs Infantry, Buildings Weak vs Aircraft + .encyclopedia = A mutated lifeform created from the strange properties of Tiberium, when infantry units are expose to it. + They regenerate health quickly and have a short-range Tiberium weapon. actor-steg = .name = Stegosaurus @@ -306,6 +329,8 @@ notification-nuclear-warhead-approaching = Nuclear warhead approaching. actor-fact = .name = Construction Yard .description = Builds structures + .encyclopedia = The core of any base. It produces buildings and defenses while also providing a build radius. It has a large health pool, but is difficult to replace, making it paramount to defend. + It can be unpacked into a mobile version using the deploy key, but takes a small amount of time to do so. actor-fact-gdi-name = Construction Yard (GDI) actor-fact-nod-name = Construction Yard (Nod) @@ -313,41 +338,52 @@ actor-fact-nod-name = Construction Yard (Nod) actor-nuke = .name = Power Plant .description = Generates power + .encyclopedia = Provides power to the structures in your base. Power output is directly related to the power plant's condition, so protect them during battles. actor-nuk2 = .name = Advanced Power Plant .description = Provides more power, cheaper than the standard Power Plant + .encyclopedia = Provides more power to the structures in your base, making it more cost-effective than the Power Plant. Power output is directly related to its condition, so protect it during battle. actor-proc = .name = Tiberium Refinery .description = Processes raw Tiberium into useable resources + .encyclopedia = Stores and processes the alien material and resource, Tiberium. Harvesters collect Tiberium in the field and deposit it at the refinery, where it is converted into credits. + The refinery stores Tiberium and immediately deploys a harvester once constructed. 3 harvesters is the maximum it can handle for close refining. actor-silo = .name = Tiberium Silo .description = Stores processed Tiberium + .encyclopedia = Stores credits. If storage is full, harvesters will wait until credits are spent. + Useful when harvesting the more valuable blue Tiberium, as a single refinery cannot store a full load. actor-pyle = .name = Barracks .description = Trains infantry + .encyclopedia = Produces infantry for GDI. Once unlocked, advanced GDI infantry are hard-hitting and fast. actor-hand = .name = Hand of Nod .description = Trains infantry + .encyclopedia = Produces infantry for Nod. Once unlocked, advanced Nod infantry are slow but have high health pools. actor-afld = .name = Airstrip .description = Provides a dropzone for vehicle reinforcements + .encyclopedia = Delivers vehicles by plane for Nod. Nod vehicles are fast but fragile. Produce harvesters at the start to jumpstart your economy. actor-weap = .name = Weapons Factory .description = Produces vehicles + .encyclopedia = Produces vehicles for GDI. GDI vehicles tend to be slow but hard-hitting. Produce harvesters at the start to jumpstart your economy. actor-hpad = .name = Helipad .description = Produces and repairs helicopters + .encyclopedia = Produces and repairs helicopters. Requires a Communications Center to build advanced attack helicopters. actor-hq = .name = Communications Center @@ -357,10 +393,12 @@ actor-hq = .airstrikepower-name = Air Strike .airstrikepower-description = Deploy an aerial napalm strike. Burns buildings and infantry along a line. + .encyclopedia = Grants the player access to the minimap (top right) when there is sufficient power. Unlocks new units while also granting access to the airstrike support power. actor-fix = .name = Repair Facility .description = Repairs vehicles + .encyclopedia = Repairs vehicles. The repair command can be used on units to send them to the nearest repair facility. actor-eye = .name = Advanced Communications Center @@ -370,6 +408,7 @@ actor-eye = .ioncannonpower-name = Ion Cannon .ioncannonpower-description = Initiate an Ion Cannon strike. Applies instant damage to a small area. + .encyclopedia = Unlocks advanced units and the ion cannon support power. If the Communications Center is lost, it restores minimap functionality and unit production. actor-tmpl = .name = Temple of Nod @@ -379,18 +418,21 @@ actor-tmpl = .nukepower-name = Nuclear Strike .nukepower-description = Launch a tactical nuclear warhead. Applies heavy damage over a large area. + .encyclopedia = Unlocks advanced units and the Nuke support power. Keeps unit unlocks online if the Communications Center is lost. actor-gun = .name = Turret .description = Basic Anti-Tank base defense. Strong vs Tanks, vehicles Weak vs Infantry + .encyclopedia = Base defense armed with an armor-piercing cannon, it deals significant damage to vehicles in range. actor-sam = .name = SAM Site .description = Anti-Aircraft base defense. Strong vs Aircraft Cannot target Ground units. + .encyclopedia = Nod anti-air base defense. It remains protected when closed and opens to engage aircraft. actor-obli = .name = Obelisk of Light @@ -398,40 +440,48 @@ actor-obli = Requires power to operate. Strong vs all Ground units Cannot target Aircraft + .encyclopedia = Advanced defense for Nod that quickly destroys ground targets with a powerful laser. actor-gtwr = .name = Guard Tower .description = Basic defensive structure. Strong vs Infantry Weak vs Tanks + .encyclopedia = Base defense armed with a high-velocity machine gun, it shreds infantry and light vehicles within range with its large area of effect. actor-atwr = .name = Advanced Guard Tower .description = All-purpose defensive structure. Strong vs Aircraft, Infantry Weak vs Tanks + .encyclopedia = Advanced defense for GDI that fires volleys of high explosive missiles at both ground and air targets. Effective versus everything. actor-sbag = .name = Sandbag Barrier .description = Stops infantry and light vehicles. Can be crushed by tanks. + .encyclopedia = Blocks movement of infantry and light vehicles, but can be crushed by tanks. Immune to small arms fire. + This barrier can be built in multiple segments once an initial sandbag has been placed. actor-cycl = .name = Chain Link Barrier .description = Stops infantry and light vehicles. Can be crushed by tanks. + .encyclopedia = Blocks infantry movement and light vehicles, but can be crushed by tanks. Immune to small arms fire. + This barrier can be built in multiple segments once an initial chain link has been placed. actor-brik = .name = Concrete Barrier .description = Stops infantry and most tanks. Blocks some projectiles. + .encyclopedia = Blocks all unit movement, except for Mammoth Tanks which can crush it. Immune to small arms fire. + This barrier can be built in multiple segments once an initial wall has been placed. actor-barracks-name = Infantry Production actor-vehicleproduction-name = Vehicle Production actor-anypower-name = Any Power Generation actor-anyhq-name = A Communications Center - ## tech.yaml actor-v19-husk-name = Oil Derrick (Destroyed) actor-hosp-husk-name = Hospital (Destroyed) @@ -441,21 +491,25 @@ actor-hosp = .name = Hospital .captured-desc = Provides infantry with self-healing. .capturable-desc = Capture to enable self-healing for infantry. + .encyclopedia = Heals friendly infantry over time when captured. actor-miss = .name = Tech Center .captured-desc = Provides range of vision. .capturable-desc = Capture to give visual range. + .encyclopedia = Provides a wide area of vision when captured actor-bio = .name = Biological Lab .captured-desc = Provides infantry with Tiberium immunity. .capturable-desc = Capture to enable Tiberium immunity for infantry. + .encyclopedia = Grants friendly infantry immunity to Tiberium when captured. actor-v19 = .name = Oil Derrick .captured-desc = Provides additional funds. .capturable-desc = Capture to receive additional funds. + .encyclopedia = Produces asmall amount of income frequently when captured. Makes less money than building a harvester, but provides consistent income. ## trees.yaml actor-splitblue-name = Blossom Tree (blue) @@ -467,12 +521,15 @@ actor-mcv = .name = Mobile Construction Vehicle .description = Deploys into another Construction Yard. Unarmed + .encyclopedia = Deploying an MCV changes it into a Construction Yard. The MCV has more health in its deployed form, but undeploying can be helpful to escape infantry. + If you have a teammate, they can “gift” you an MCV by destroying an undeployed one near your base, allowing you to reclaim it with an engineer. actor-harv = .name = Harvester .generic-name = Harvester .description = Collects Tiberium for processing. Unarmed + .encyclopedia = Harvesters slowly mine Tiberium and deposit it in your refinery, where it is converted into credits. They can also be sent to allied refineries to provide funds. notification-harvester-lost = Harvester lost. @@ -482,23 +539,29 @@ actor-apc = Can attack Aircraft. Strong vs Vehicles Weak vs Infantry + .encyclopedia = The APC (Armored Personnel Carrier) transports infantry, making it handy for capturing civilian structures. While its flak gun does not do much damage to enemy vehicles, the APC can resist enemy shots while your Hum-vees deal the damage. + It also functions as your primary AA unit; if you hit the stop command, it’ll retarget onto any nearby enemy air units. actor-arty = .name = Artillery .description = Long-range artillery. Strong vs Infantry, Vehicles and Buildings + .encyclopedia = Nod’s artillery is a glass cannon, fragile but dealing large amounts of damage at long range. Particularly strong vs structures and infantry, it can destroy stationary tanks. + Highly vulnerable when clumped due to its explosion on death. actor-ftnk = .name = Flame Tank .description = Heavily armored flame-throwing vehicle. Strong vs Infantry, Buildings and Vehicles Weak vs Tanks + .encyclopedia = Roast infantry and structures alike, making them great for surprise attacks. Be wary of their splash damage on death, but be aware it can also be used to your advantage. actor-bggy = .name = Nod Buggy .description = Fast scout and anti-infantry vehicle. Strong vs Infantry Weak vs Tanks + .encyclopedia = Strong versus light vehicles and infantry, Buggies are great at scouting and killing isolated infantry. Though it is a little cheaper and faster than the GDI Hum-vee, they are more fragile. actor-bike = .name = Recon Bike @@ -507,40 +570,53 @@ actor-bike = Can attack Aircraft. Strong vs Vehicles, Tanks Weak vs Infantry + .encyclopedia = The Nod bike is a very fast vehicle armed with armor-piercing rockets, which makes it great for hit and run and harvester harassment. + Be wary that its rockets are slow and have a hard time hitting fast-moving targets. actor-jeep = .name = Hum-Vee .description = Fast scout and anti-infantry vehicle. Strong vs Infantry Weak vs Tanks + .encyclopedia = Strong versus light vehicles and infantry, Hum-vees are great at scouting and eliminating isolated infantry. + They're excellent for dealing with Nod bike spam and should be built instead of tanks in such engagements. Although a little slower than the Nod buggy, it has more health. actor-ltnk = .name = Light Tank .description = Fast, light tank. Strong vs Vehicles, Tanks Weak vs Infantry + .encyclopedia = With its great speed and high health pool, the light tank works great as a frontline unit in various compositions despite its damage output. + It should be combined with bikes, stealth tanks, or infantry when facing medium tanks. actor-mtnk = .name = Medium Tank .description = General-Purpose GDI Tank. Strong vs Tanks, Vehicles Weak vs Infantry + .encyclopedia = The workhorse of GDI, offering a good balance of speed, durability and firepower. It will easily destroy Nod light tanks and can tear through structures if it sneaks into a base. + Mix minigunners with your medium tank armies to deal with enemy infantry. actor-htnk = .name = Mammoth Tank .description = Heavily armored GDI Tank. Can attack Aircraft. Strong vs Everything + .encyclopedia = A crawling battle station, capable of self-repair and engaging any threat. It is particularly effective against enemy armor, but can also destroy small amounts of infantry or aircraft. + When in an enemy base, put it on aggressive stance to have it carve a path of destruction as it moves. actor-msam = .name = Rocket Launcher .description = Long range rocket artillery. Strong vs all Ground units. + .encyclopedia = Referred to as “MLRS” by players (Multiple Launch Rocket System), this artillery platform fires volleys of rockets at distant targets. It is particularly effective against light vehicles and does moderate damage vs infantry, buildings, and heavy armor. + A strong unit to build vs enemy artillery, its high bullet velocity and damage to light vehicles makes it the perfect counter to Nod artillery. actor-mlrs = .name = Mobile S.A.M. .description = Powerful anti-air unit. Cannot attack Ground units. + .encyclopedia = Generally referred to as “MSAM” by players, this Nod vehicle is a dedicated anti-air vehicle when their bikes do not cut it. It fires slow-moving missiles with powerful splash damage. actor-stnk = .name = Stealth Tank @@ -549,6 +625,8 @@ actor-stnk = Has weak armor. Can be spotted by infantry and defense structures. Strong vs Vehicles, Tanks Weak vs Infantry. + .encyclopedia = Cloaked units that become visible when damaged or firing their weapons. They can also be detected by defenses within a small radius or infantry at a one-cell range. + Their long-range AP missiles are excellent for dealing with enemy armor or air. They can also crush infantry in a pinch. actor-mhq = .name = Mobile HQ @@ -559,6 +637,7 @@ actor-truck = Builds fast Unarmed .name = Supply Truck + .encyclopedia = Supply trucks are a convenient way to share cash when your ally is out of money, or you can't spend yours fast enough. They build far quicker than their cost suggests. ## ai.yaml bot-cabal = diff --git a/mods/cnc/mod.yaml b/mods/cnc/mod.yaml index 0b14cba55e..b86e3a5970 100644 --- a/mods/cnc/mod.yaml +++ b/mods/cnc/mod.yaml @@ -97,6 +97,7 @@ ChromeLayout: cnc|chrome/mainmenu.yaml cnc|chrome/mainmenu-prompts.yaml cnc|chrome/playerprofile.yaml + cnc|chrome/encyclopedia.yaml cnc|chrome/multiplayer-browser.yaml cnc|chrome/multiplayer-browserpanels.yaml cnc|chrome/multiplayer-createserver.yaml diff --git a/mods/cnc/rules/aircraft.yaml b/mods/cnc/rules/aircraft.yaml index bf71828681..5375f6bbe7 100644 --- a/mods/cnc/rules/aircraft.yaml +++ b/mods/cnc/rules/aircraft.yaml @@ -23,6 +23,10 @@ TRAN: RevealsShroud: Range: 10c0 Type: GroundPosition + Encyclopedia: + Description: actor-tran.encyclopedia + Order: 230 + Category: Units WithIdleOverlay@ROTOR1AIR: Offset: 597,0,85 Sequence: rotor @@ -85,6 +89,10 @@ HELI: LocalOffset: 128,-213,-85, 128,213,-85 MuzzleSequence: muzzle PauseOnCondition: !ammo + Encyclopedia: + Description: actor-heli.encyclopedia + Order: 240 + Category: Units AttackMove: Voice: Attack AutoTarget: @@ -153,6 +161,10 @@ ORCA: Weapon: OrcaAAMissiles LocalOffset: 427,-171,-213, 427,171,-213 PauseOnCondition: !ammo + Encyclopedia: + Description: actor-orca.encyclopedia + Order: 250 + Category: Units AttackMove: Voice: Attack AutoTarget: diff --git a/mods/cnc/rules/infantry.yaml b/mods/cnc/rules/infantry.yaml index 55843cba6d..ea19609806 100644 --- a/mods/cnc/rules/infantry.yaml +++ b/mods/cnc/rules/infantry.yaml @@ -22,6 +22,10 @@ E1: ScanRadius: 4 Armament: Weapon: M16 + Encyclopedia: + Description: actor-e1.encyclopedia + Order: 0 + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -57,6 +61,9 @@ E2: Weapon: Grenade LocalOffset: 0,0,427 FireDelay: 15 + Encyclopedia: + Description: actor-e2.encyclopedia + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -97,6 +104,10 @@ E3: Weapon: Rockets LocalOffset: 256,43,341 FireDelay: 5 + Encyclopedia: + Description: actor-e3.encyclopedia + Order: 20 + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -134,6 +145,10 @@ E4: LocalOffset: 341,0,256 FireDelay: 3 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-e4.encyclopedia + Order: 30 + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -173,6 +188,10 @@ E5: LocalOffset: 341,0,256 FireDelay: 3 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-e5.encyclopedia + Order: 40 + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -203,6 +222,10 @@ E6: Speed: 46 Health: HP: 3000 + Encyclopedia: + Description: actor-e6.encyclopedia + Order: 50 + Category: Units Passenger: CustomPipType: yellow InstantlyRepairs: @@ -252,6 +275,10 @@ RMBO: Voice: Demolish Armament: Weapon: Sniper + Encyclopedia: + Description: actor-rmbo.encyclopedia + Order: 60 + Category: Units WithInfantryBody: DefaultAttackSequence: shoot IdleSequences: idle1,idle2,idle3 @@ -270,12 +297,16 @@ PVICE: Queue: Infantry.GDI, Infantry.Nod BuildPaletteOrder: 50 Prerequisites: ~disabled - Description: actor-pvice-description + Description: actor-pvice.description Tooltip: UpdatesPlayerStatistics: AddToArmyValue: true ActorLostNotification: TextNotification: notification-unit-lost + Encyclopedia: + Description: actor-pvice.encyclopedia + Order: 70 + Category: Units STEG: Inherits: ^DINO diff --git a/mods/cnc/rules/misc.yaml b/mods/cnc/rules/misc.yaml index 9986424771..b131659e6f 100644 --- a/mods/cnc/rules/misc.yaml +++ b/mods/cnc/rules/misc.yaml @@ -82,6 +82,7 @@ fact.colorpicker: -Buildable: -MapEditorData: -BaseBuilding: + -Encyclopedia: RenderSprites: Image: fact Palette: colorpicker diff --git a/mods/cnc/rules/structures.yaml b/mods/cnc/rules/structures.yaml index d7ae25e173..976740059a 100644 --- a/mods/cnc/rules/structures.yaml +++ b/mods/cnc/rules/structures.yaml @@ -11,6 +11,10 @@ FACT: Footprint: xxx xxx === Dimensions: 3,3 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-fact.encyclopedia + Category: Buildings + Order: 0 Health: HP: 210000 Armor: @@ -135,6 +139,7 @@ FACT.GDI: ForceFaction: gdi Tooltip: Name: actor-fact-gdi-name + -Encyclopedia: FACT.NOD: Inherits: FACT @@ -147,6 +152,7 @@ FACT.NOD: ForceFaction: nod Tooltip: Name: actor-fact-nod-name + -Encyclopedia: NUKE: Inherits: ^BaseBuilding @@ -170,6 +176,10 @@ NUKE: Footprint: xX xx == Dimensions: 2,3 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-nuke.encyclopedia + Category: Buildings + Order: 40 Health: HP: 55000 RevealsShroud: @@ -201,6 +211,10 @@ NUK2: Footprint: xX xx == Dimensions: 2,3 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-nuk2.encyclopedia + Category: Buildings + Order: 190 Health: HP: 70000 RevealsShroud: @@ -234,6 +248,10 @@ PROC: Footprint: _x_ xxx +++ === Dimensions: 3,4 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-proc.encyclopedia + Category: Buildings + Order: 80 Health: HP: 100000 RevealsShroud: @@ -281,6 +299,10 @@ SILO: Building: Footprint: xx Dimensions: 2,1 + Encyclopedia: + Description: actor-silo.encyclopedia + Category: Buildings + Order: 90 -GivesBuildableArea: Health: HP: 50000 @@ -326,6 +348,10 @@ PYLE: Footprint: xx ++ == Dimensions: 2,3 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-pyle.encyclopedia + Category: Buildings + Order: 50 Health: HP: 60000 RevealsShroud: @@ -387,6 +413,10 @@ HAND: Footprint: xx xx == Dimensions: 2,3 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-hand.encyclopedia + Category: Buildings + Order: 60 Health: HP: 60000 RevealsShroud: @@ -451,6 +481,10 @@ AFLD: Footprint: XXX+ xxx+ ==== Dimensions: 4,3 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-afld.encyclopedia + Category: Buildings + Order: 110 Health: HP: 110000 RevealsShroud: @@ -516,6 +550,10 @@ WEAP: Selectable: Bounds: 3072, 2048 DecorationBounds: 3072, 2730, 0, -682 + Encyclopedia: + Description: actor-weap.encyclopedia + Category: Buildings + Order: 100 Health: HP: 110000 RevealsShroud: @@ -577,6 +615,10 @@ HPAD: Building: Footprint: xx xx Dimensions: 2,2 + Encyclopedia: + Description: actor-hpad.encyclopedia + Category: Buildings + Order: 120 Health: HP: 60000 RevealsShroud: @@ -663,6 +705,10 @@ HQ: DecorationBounds: 2048, 2261, 0, -170 WithSpriteBody: PauseOnCondition: lowpower + Encyclopedia: + Description: actor-hq.encyclopedia + Category: Buildings + Order: 130 Health: HP: 80000 RevealsShroud: @@ -725,6 +771,10 @@ FIX: Building: Footprint: _+_ +++ _+_ Dimensions: 3,3 + Encyclopedia: + Description: actor-fix.encyclopedia + Category: Buildings + Order: 180 Selectable: Bounds: 2730, 1450, 0, 128 DecorationBounds: 3072, 2048 @@ -773,6 +823,10 @@ EYE: Footprint: X_ xx == Dimensions: 2,3 LocalCenterOffset: 0,-512,0 + Encyclopedia: + Description: actor-eye.encyclopedia + Category: Buildings + Order: 200 Selectable: Bounds: 2048, 1706, 0, 384 DecorationBounds: 2048, 2261, 0, -170 @@ -839,6 +893,10 @@ TMPL: Selectable: Bounds: 3072, 2048 DecorationBounds: 3072, 2901, 0, -512 + Encyclopedia: + Description: actor-tmpl.encyclopedia + Category: Buildings + Order: 210 Health: HP: 210000 RevealsShroud: @@ -905,6 +963,10 @@ GUN: BuildDuration: 960 Description: actor-gun.description Building: + Encyclopedia: + Description: actor-gun.encyclopedia + Category: Buildings + Order: 160 Health: HP: 41000 Armor: @@ -962,6 +1024,10 @@ SAM: Building: Footprint: xx Dimensions: 2,1 + Encyclopedia: + Description: actor-sam.encyclopedia + Category: Buildings + Order: 161 Health: HP: 40000 Armor: @@ -1008,6 +1074,10 @@ OBLI: Selectable: Bounds: 1024, 1024 DecorationBounds: 938, 1877, 0, -426 + Encyclopedia: + Description: actor-obli.encyclopedia + Category: Buildings + Order: 220 Health: HP: 75000 Armor: @@ -1053,6 +1123,10 @@ GTWR: BuildDuration: 960 Description: actor-gtwr.description Building: + Encyclopedia: + Description: actor-gtwr.encyclopedia + Category: Buildings + Order: 150 Health: HP: 40000 Armor: @@ -1094,6 +1168,10 @@ ATWR: Selectable: Bounds: 1024, 1024 DecorationBounds: 938, 2048, 0, -512 + Encyclopedia: + Description: actor-atwr.encyclopedia + Category: Buildings + Order: 170 Health: HP: 55000 Armor: @@ -1140,6 +1218,10 @@ SBAG: Prerequisites: fact Queue: Defence.GDI Description: actor-sbag.description + Encyclopedia: + Description: actor-sbag.encyclopedia + Category: Buildings + Order: 10 Armor: Type: Light LineBuild: @@ -1162,6 +1244,10 @@ CYCL: Prerequisites: fact Queue: Defence.Nod Description: actor-cycl.description + Encyclopedia: + Description: actor-cycl.encyclopedia + Category: Buildings + Order: 20 Armor: Type: Light LineBuild: @@ -1185,6 +1271,10 @@ BRIK: Queue: Defence.GDI, Defence.Nod BuildDuration: 230 Description: actor-brik.description + Encyclopedia: + Description: actor-brik.encyclopedia + Category: Buildings + Order: 30 Health: HP: 20000 Armor: diff --git a/mods/cnc/rules/tech.yaml b/mods/cnc/rules/tech.yaml index 7cfd613837..f30f70fcae 100644 --- a/mods/cnc/rules/tech.yaml +++ b/mods/cnc/rules/tech.yaml @@ -10,6 +10,10 @@ V19: Dimensions: 1,1 Health: HP: 80000 + Encyclopedia: + Description: actor-v19.encyclopedia + Order: 0 + Category: Civilian Tooltip: Name: actor-v19.name TooltipDescription@ally: @@ -48,6 +52,10 @@ HOSP: Dimensions: 2,2 Health: HP: 250000 + Encyclopedia: + Description: actor-hosp.encyclopedia + Order: 10 + Category: Civilian Tooltip: Name: actor-hosp.name TooltipDescription@ally: @@ -84,6 +92,10 @@ BIO: Dimensions: 2,2 Health: HP: 250000 + Encyclopedia: + Description: actor-bio.encyclopedia + Order: 10 + Category: Civilian Tooltip: Name: actor-bio.name TooltipDescription@ally: @@ -127,6 +139,10 @@ MISS: Cost: 0 Health: HP: 80000 + Encyclopedia: + Description: actor-miss.encyclopedia + Order: 20 + Category: Civilian RevealsShroud: Range: 13c0 TooltipDescription@ally: diff --git a/mods/cnc/rules/vehicles.yaml b/mods/cnc/rules/vehicles.yaml index 04ae7dfe3f..a4c0293d4d 100644 --- a/mods/cnc/rules/vehicles.yaml +++ b/mods/cnc/rules/vehicles.yaml @@ -16,6 +16,10 @@ MCV: Locomotor: heavywheeled Health: HP: 120000 + Encyclopedia: + Description: actor-mcv.encyclopedia + Order: 80 + Category: Units Repairable: HpPerStep: 1819 Armor: @@ -70,6 +74,10 @@ HARV: Speed: 72 Health: HP: 62500 + Encyclopedia: + Description: actor-harv.encyclopedia + Order: 90 + Category: Units Repairable: HpPerStep: 2584 Armor: @@ -123,6 +131,10 @@ APC: PauseOnCondition: notmobile Health: HP: 19000 + Encyclopedia: + Description: actor-apc.encyclopedia + Order: 100 + Category: Units Repairable: HpPerStep: 1440 Armor: @@ -211,6 +223,10 @@ ARTY: Weapon: ArtilleryShell LocalOffset: 624,0,208 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-arty.encyclopedia + Order: 110 + Category: Units AttackFrontal: TargetFrozenActors: True ForceFireIgnoresActors: True @@ -260,6 +276,10 @@ FTNK: Weapon: BigFlamer LocalOffset: 512,128,42, 512,-128,42 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-ftnk.encyclopedia + Order: 120 + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -308,6 +328,10 @@ BGGY: Weapon: MachineGun LocalOffset: 171,0,43 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-bggy.encyclopedia + Order: 130 + Category: Units AttackMove: Voice: Attack AttackTurreted: @@ -351,6 +375,10 @@ BIKE: Weapon: BikeRockets LocalOffset: -128, -170, 170, -128, 170, 170 LocalYaw: 100, -100 + Encyclopedia: + Description: actor-bike.encyclopedia + Order: 140 + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -395,6 +423,10 @@ JEEP: Weapon: MachineGunH LocalOffset: 171,0,85 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-jeep.encyclopedia + Order: 150 + Category: Units AttackMove: Voice: Attack AttackTurreted: @@ -441,6 +473,10 @@ LTNK: RecoilRecovery: 17 LocalOffset: 720,0,90 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-ltnk.encyclopedia + Order: 160 + Category: Units AttackMove: Voice: Attack AttackTurreted: @@ -486,6 +522,10 @@ MTNK: RecoilRecovery: 26 LocalOffset: 768,0,90 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-mtnk.encyclopedia + Order: 170 + Category: Units AttackMove: Voice: Attack AttackTurreted: @@ -546,6 +586,10 @@ HTNK: LocalYaw: -100, 100 Recoil: 10 MuzzleSequence: muzzle + Encyclopedia: + Description: actor-htnk.encyclopedia + Order: 180 + Category: Units AttackMove: Voice: Attack AttackTurreted: @@ -599,6 +643,14 @@ MSAM: Armament: Weapon: 227mm LocalOffset: 213,128,0, 213,-128,0 + Armament@SECONDARY: + Name: secondary + Weapon: 227mm + LocalOffset: 213,-128,0, 213,128,0 + Encyclopedia: + Description: actor-msam.encyclopedia + Order: 190 + Category: Units AttackFrontal: TargetFrozenActors: True ForceFireIgnoresActors: True @@ -651,6 +703,10 @@ MLRS: Armament: Weapon: Patriot LocalOffset: 0,-171,0, 0,171,0 + Encyclopedia: + Description: actor-mlrs.encyclopedia + Order: 200 + Category: Units AmmoPool: Ammo: 2 AmmoCondition: ammo @@ -721,6 +777,10 @@ STNK: Armament@SECONDARY: Weapon: 227mm.stnkAA LocalOffset: 213,43,128, 213,-43,128 + Encyclopedia: + Description: actor-stnk.encyclopedia + Order: 210 + Category: Units AttackFrontal: Voice: Attack FacingTolerance: 0 @@ -779,6 +839,10 @@ TRUCK: Speed: 113 RevealsShroud: Range: 4c0 + Encyclopedia: + Description: actor-truck.encyclopedia + Order: 220 + Category: Units DeliversCash: Payload: 1000 PlayerExperience: 10