work in progress, can be branched/merged
This commit is contained in:
13
src/potions.cc
Normal file
13
src/potions.cc
Normal file
@ -0,0 +1,13 @@
|
||||
#include "potions.h"
|
||||
|
||||
void new_potion(std::unique_ptr<potion> &pp, potion_type type,
|
||||
const position &pos) {
|
||||
switch (type) {
|
||||
case potion_type::restore_health:
|
||||
pp = std::make_unique<class restore_health>(pos);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user