1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

readMonster returns Pike for 'Pike' instead of Pikeman

This commit is contained in:
Zeno Rogue 2020-02-27 21:03:54 +01:00
parent a12bdf5d40
commit 7121742d7c

View File

@ -33,6 +33,7 @@ EX eItem readItem(const string& ss) {
} }
EX eMonster readMonster(const string& ss) { EX eMonster readMonster(const string& ss) {
if(ss == "Pike") return moPike;
for(int i=0; i<motypes; i++) if(appears(minf[i].name, ss)) { for(int i=0; i<motypes; i++) if(appears(minf[i].name, ss)) {
return eMonster(i); return eMonster(i);
break; break;