aboutsummaryrefslogtreecommitdiff
path: root/src/creature.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/creature.cc')
-rw-r--r--src/creature.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/creature.cc b/src/creature.cc
index ea8ef30..4343b6d 100644
--- a/src/creature.cc
+++ b/src/creature.cc
@@ -5,6 +5,7 @@
#include "armor.h"
#include "attack.h"
#include "spellcasting.h"
+#include "namegen/namegen.h"
#include <algorithm>
#include <iostream>
#include <sstream>
@@ -84,6 +85,9 @@ namespace creature {
}
data->hp = data->hpMax;
}
+ if(getGivenName() == "NAME") {
+ setGivenName(NameGen::generate(*this));
+ }
}
// True if type without matching qualifiers is in subdata