feat(admin): implement pregnancy and birth management features
Some checks failed
Deploy to production / deploy (push) Failing after 2m6s
Some checks failed
Deploy to production / deploy (push) Failing after 2m6s
- Added new admin functionalities to force pregnancy, clear pregnancy, and trigger birth for characters. - Introduced corresponding routes and controller methods in adminRouter and adminController. - Enhanced the FalukantCharacter model to include pregnancy-related fields. - Created database migration for adding pregnancy columns to the character table. - Updated frontend views and internationalization files to support new pregnancy and birth management features. - Improved user feedback and error handling for these new actions.
This commit is contained in:
@@ -223,7 +223,40 @@
|
||||
"errorLoadingStockTypes": "Error loading warehouse types.",
|
||||
"errorAddingStock": "Error adding warehouse.",
|
||||
"stockAdded": "Warehouse successfully added.",
|
||||
"invalidStockData": "Please enter valid warehouse type and quantity."
|
||||
"invalidStockData": "Please enter valid warehouse type and quantity.",
|
||||
"pregnancy": {
|
||||
"title": "Pregnancy (admin)",
|
||||
"characterId": "Character ID",
|
||||
"status": "Status",
|
||||
"statusActive": "Expecting until",
|
||||
"statusNone": "Not pregnant",
|
||||
"fatherId": "Father character ID (optional)",
|
||||
"dueDays": "Days until due date",
|
||||
"force": "Set pregnancy",
|
||||
"clear": "Clear pregnancy",
|
||||
"successForce": "Pregnancy has been set.",
|
||||
"successClear": "Pregnancy has been cleared.",
|
||||
"error": "Action failed."
|
||||
},
|
||||
"birth": {
|
||||
"title": "Force birth (admin)",
|
||||
"motherHint": "The character listed above is used as the mother.",
|
||||
"fatherId": "Father character ID",
|
||||
"context": "Context",
|
||||
"contextMarriage": "Marriage",
|
||||
"contextLover": "Affair",
|
||||
"legitimacy": "Legitimacy",
|
||||
"legitimate": "Legitimate",
|
||||
"ackBastard": "Acknowledged bastard",
|
||||
"hiddenBastard": "Hidden bastard",
|
||||
"gender": "Child gender",
|
||||
"genderRandom": "Random",
|
||||
"male": "Male",
|
||||
"female": "Female",
|
||||
"force": "Trigger birth",
|
||||
"success": "Child created (baptism pending).",
|
||||
"error": "Could not trigger birth."
|
||||
}
|
||||
},
|
||||
"createNPC": {
|
||||
"title": "Create NPCs",
|
||||
|
||||
Reference in New Issue
Block a user