XP and level up systems implemented.
This commit is contained in:
@@ -474,6 +474,8 @@ void Monster::OnDeath(){
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
game->GetPlayer()->AddAccumulatedXP(MONSTER_DATA.at(name).GetXP());
|
||||
}
|
||||
|
||||
const ItemAttributable&Monster::GetStats()const{
|
||||
@@ -482,4 +484,8 @@ const ItemAttributable&Monster::GetStats()const{
|
||||
|
||||
ItemAttribute&Monster::Get(std::string_view attr){
|
||||
return ItemAttribute::Get(attr,this);
|
||||
}
|
||||
|
||||
const uint32_t MonsterData::GetXP()const{
|
||||
return xp;
|
||||
}
|
||||
Reference in New Issue
Block a user