From a5f385768fba7e503a77f1f485296dda0ac0492e Mon Sep 17 00:00:00 2001 From: Sven Eberhardt Date: Fri, 20 Nov 2015 21:11:26 -0500 Subject: [PATCH] TreasureHunt: Custom description for gold bars. --- .../TreasureHunt.ocs/System.ocg/GoldBarSpecial.c | 6 ++++++ .../TreasureHunt.ocs/System.ocg/StringTblDE.txt | 1 + .../TreasureHunt.ocs/System.ocg/StringTblUS.txt | 1 + 3 files changed, 8 insertions(+) diff --git a/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/GoldBarSpecial.c b/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/GoldBarSpecial.c index a0613d74c..4e26ba1b7 100644 --- a/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/GoldBarSpecial.c +++ b/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/GoldBarSpecial.c @@ -2,6 +2,12 @@ #appendto GoldBar +public func Construction(...) +{ + this.Description = Format("$SpecialGoldBarDesc$", MAX_GOLD_BARS); + return _inherited(...); +} + public func IsFoundryProduct() { return false; } // Don't let players produce them func Entrance(container) diff --git a/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblDE.txt b/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblDE.txt index 6a9d3329d..2921aefee 100644 --- a/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblDE.txt +++ b/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblDE.txt @@ -1,3 +1,4 @@ +SpecialGoldBarDesc=Versteckter Schatz. Kannst du alle %d Goldbarren finden? PlaneNoOil=Das Flugzeug braucht noch Treibstoff. Ich muss irgendwo Öl auftreiben. Intro1=Autsch. Pyrit! diff --git a/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblUS.txt b/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblUS.txt index 3f310c169..b60ab98f0 100644 --- a/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblUS.txt +++ b/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/StringTblUS.txt @@ -1,3 +1,4 @@ +SpecialGoldBarDesc=Hidden treasure. Try to collect all %d hidden gold bars! PlaneNoOil=The plane needs fuel. I must find oil somewhere. Intro1=Ouch. Pyrit!