mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 01:19:44 +00:00
Add client UI support for 4 new quest types (PR 2/3) (#5853)
Adds C# client display support for:
- SwearBrotherhoodWithHeroQuest: "Swear brotherhood with {heroName}"
- BetrayAllyQuest: "Break an alliance with an ally"
- BorderSecurityQuest: "Control all provinces bordering {provinceName}"
- WinBattleOutnumberedQuest: "Win a battle while outnumbered"
Changes:
- DisplayNames.cs: Add quest type strings
- UnaffiliatedHeroRowController.cs: Add quest descriptions in SetQuestText and ShortQuestString
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -167,6 +167,11 @@ namespace eagle {
|
||||
case SealedValueOneofCase.MobilizeProvincesQuest: return "Mobilize Provinces";
|
||||
case SealedValueOneofCase.BattalionDiversityQuest: return "Battalion Diversity";
|
||||
case SealedValueOneofCase.ReleaseAllPrisonersQuest: return "Release All Prisoners";
|
||||
case SealedValueOneofCase.SwearBrotherhoodWithHeroQuest: return "Swear Brotherhood";
|
||||
case SealedValueOneofCase.BetrayAllyQuest: return "Betray Ally";
|
||||
case SealedValueOneofCase.BorderSecurityQuest: return "Border Security";
|
||||
case SealedValueOneofCase.WinBattleOutnumberedQuest:
|
||||
return "Win Battle Outnumbered";
|
||||
}
|
||||
|
||||
throw new ArgumentException($"unknown quest {quest}");
|
||||
|
||||
+23
@@ -147,6 +147,15 @@ namespace eagle {
|
||||
model);
|
||||
break;
|
||||
|
||||
case SealedValueOneofCase.SwearBrotherhoodWithHeroQuest:
|
||||
var brotherhoodDetails = quest.Details.SwearBrotherhoodWithHeroQuest;
|
||||
SetDynamicHeroQuestText(
|
||||
brotherhoodDetails.TargetHeroId,
|
||||
(heroName) => $"Swear brotherhood with {heroName}",
|
||||
"Swear brotherhood with a hero",
|
||||
model);
|
||||
break;
|
||||
|
||||
default:
|
||||
// For all other quests, use the static method
|
||||
questLabel.text = ShortQuestString(quest, model);
|
||||
@@ -347,6 +356,20 @@ namespace eagle {
|
||||
case SealedValueOneofCase.ReleaseAllPrisonersQuest:
|
||||
return "Release all prisoners (don't execute, move, or trade them)";
|
||||
|
||||
case SealedValueOneofCase.SwearBrotherhoodWithHeroQuest:
|
||||
return "Swear brotherhood with a hero";
|
||||
|
||||
case SealedValueOneofCase.BetrayAllyQuest: return "Break an alliance with an ally";
|
||||
|
||||
case SealedValueOneofCase.BorderSecurityQuest: {
|
||||
var details = quest.Details.BorderSecurityQuest;
|
||||
var provinceName = model.Provinces[details.TargetProvinceId].Name;
|
||||
return $"Control all provinces bordering {provinceName}";
|
||||
}
|
||||
|
||||
case SealedValueOneofCase.WinBattleOutnumberedQuest:
|
||||
return "Win a battle while outnumbered";
|
||||
|
||||
default:
|
||||
return $"Crosby hasn't gotten to quest of type {quest.Details.SealedValueCase} yet";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user