XP and level up systems implemented.

This commit is contained in:
2023-12-24 22:50:25 -06:00
parent 2a72238e40
commit 4ac15dd1cc
17 changed files with 235 additions and 113 deletions
+6
View File
@@ -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;
}