mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
Clarify failed quest notification hero argument
This commit is contained in:
+7
-7
@@ -183,7 +183,7 @@ object QuestFulfillmentUtils {
|
||||
actionResult = ar,
|
||||
gameId = gameId,
|
||||
province = province,
|
||||
uhWithFailedQuest = uh,
|
||||
uhBeforeQuestFailure = uh,
|
||||
currentDate = currentDate
|
||||
)
|
||||
}
|
||||
@@ -248,13 +248,13 @@ object QuestFulfillmentUtils {
|
||||
actionResult: ActionResultT,
|
||||
gameId: GameId,
|
||||
province: ProvinceT,
|
||||
uhWithFailedQuest: UnaffiliatedHeroT,
|
||||
uhBeforeQuestFailure: UnaffiliatedHeroT,
|
||||
currentDate: Date
|
||||
): ActionResultT = {
|
||||
val notificationRequest =
|
||||
questFailedNotificationRequest(uhWithFailedQuest, province, gameId)
|
||||
questFailedNotificationRequest(uhBeforeQuestFailure, province, gameId)
|
||||
val backstoryEvent = questFailedBackstoryEvent(
|
||||
uh = uhWithFailedQuest,
|
||||
uh = uhBeforeQuestFailure,
|
||||
province = province,
|
||||
currentDate = currentDate
|
||||
)
|
||||
@@ -262,7 +262,7 @@ object QuestFulfillmentUtils {
|
||||
actionResult
|
||||
.withChangedHero(
|
||||
ChangedHeroC(
|
||||
heroId = uhWithFailedQuest.heroId,
|
||||
heroId = uhBeforeQuestFailure.heroId,
|
||||
newEventsForHeroBackstory = Vector(backstoryEvent)
|
||||
)
|
||||
)
|
||||
@@ -270,8 +270,8 @@ object QuestFulfillmentUtils {
|
||||
NotificationC(
|
||||
targetFactionIds = Vector(province.getRulingFactionId),
|
||||
affectedProvinceIds = Vector(province.id),
|
||||
affectedHeroIds = Vector(uhWithFailedQuest.heroId),
|
||||
details = failedNotificationDetails(uhWithFailedQuest, province.id),
|
||||
affectedHeroIds = Vector(uhBeforeQuestFailure.heroId),
|
||||
details = failedNotificationDetails(uhBeforeQuestFailure, province.id),
|
||||
llm = NotificationT.Llm.Id(notificationRequest.requestId),
|
||||
deferred = false
|
||||
)
|
||||
|
||||
+2
-2
@@ -195,7 +195,7 @@ class QuestFulfillmentUtilsTest extends AnyFlatSpec with MockFactory with Matche
|
||||
actionResult = startingAr,
|
||||
gameId = gameId,
|
||||
province = province,
|
||||
uhWithFailedQuest = uh,
|
||||
uhBeforeQuestFailure = uh,
|
||||
currentDate = currentDate
|
||||
)
|
||||
|
||||
@@ -223,7 +223,7 @@ class QuestFulfillmentUtilsTest extends AnyFlatSpec with MockFactory with Matche
|
||||
actionResult = startingAr,
|
||||
gameId = gameId,
|
||||
province = province,
|
||||
uhWithFailedQuest = uh,
|
||||
uhBeforeQuestFailure = uh,
|
||||
currentDate = currentDate
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user