reRoyalBlood tweaks, V.missingTable typing, and helper functions
This implements the first suggestion in #5549
Changes
-
FC.MissingParentRecord
type which is applied toV.missingTable
- Added
missingTableRecordFromHumanState()
which makes a validFC.MissingParentRecord
object when given aHumanState
object- Replaced code with
missingTableRecordFromHumanState()
where it made sense
- Replaced code with
- Added
generateMissingParentID()
which decrementsV.missingParentID
and makes sure it isn't already in use for some reason and then returns a unique (toV.missingTable
) id- Replaced code with
generateMissingParentID()
where it made sense
- Replaced code with
-
App.Events.RERoyalBlood
now generates the king and adds it toV.missingTable
if the queen and/or either of her children are acquired - If the pregSource is in the missing table and
V.showMissingSlaves === false
we will now showan unknown father's growing ...
instead ofundefined's growing ...
- The king is now shown as the parent of the queen's fetus as long as
V.showMissingSlaves === true
, otherwise it showsan unknown father
- This is the existing behavior. @Pregmodder It may make sense to set
V.showMissingSlaves === true
as the default for new games at this point in time
- This is the existing behavior. @Pregmodder It may make sense to set
Edited by Frankly George