Add NPC creation and titles retrieval functionality in Admin module
- Implemented createNPCs method in AdminController to handle NPC creation with specified parameters including region, age, title, and count. - Added getTitlesOfNobility method in AdminController to retrieve available titles for users. - Updated adminRouter to include new routes for creating NPCs and fetching titles. - Enhanced navigationController and frontend localization files to support new NPC creation feature. - Introduced corresponding UI components and routes for NPC management in the admin interface.
This commit is contained in:
@@ -280,6 +280,10 @@ const menuStructure = {
|
||||
visible: ["mainadmin", "falukant"],
|
||||
path: "/admin/falukant/map"
|
||||
},
|
||||
createNPC: {
|
||||
visible: ["mainadmin", "falukant"],
|
||||
path: "/admin/falukant/create-npc"
|
||||
},
|
||||
}
|
||||
},
|
||||
minigames: {
|
||||
|
||||
Reference in New Issue
Block a user