diff options
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r-- | src/being/playerinfo.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index 993c4d8a6..ba36d59a3 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -26,6 +26,7 @@ #include "inventory.h" #include "being/attributes.h" +#include "being/localplayer.h" #include "being/mercenaryinfo.h" #include "itemsoundmanager.h" @@ -472,6 +473,14 @@ void setMercenary(MercenaryInfo *const info) mMercenary = info; } +void setMercenaryBeing(Being *const being) +{ + if (!being || !mMercenary) + return; + being->setName(mMercenary->name); + being->setOwner(localPlayer); +} + MercenaryInfo *getMercenary() { return mMercenary; |