Define health and growth rates of each class.

This commit is contained in:
2023-10-21 00:33:46 -05:00
parent 3ee6d03728
commit e779725106
12 changed files with 65 additions and 17 deletions
+5 -5
View File
@@ -239,13 +239,13 @@ void Menu::Draw(Crawler*game){
game->Clear(BLANK);
for(auto&component:displayComponents){
if(component->renderInMain){
component->_Draw(game,pos,this==Menu::stack.back());
component->_Draw(game,{0,0},this==Menu::stack.back());
}
}
for(auto&key:buttons){
for(auto&button:key.second){
if(button->renderInMain){
button->_Draw(game,pos,this==Menu::stack.back());
button->_Draw(game,{0,0},this==Menu::stack.back());
}
}
}
@@ -255,13 +255,13 @@ void Menu::Draw(Crawler*game){
game->DrawDecal(pos,r.Decal());
for(auto&component:displayComponents){
if(component->renderInMain){
component->_DrawDecal(game,pos,this==Menu::stack.back());
component->_DrawDecal(game,{0,0},this==Menu::stack.back());
}
}
for(auto&key:buttons){
for(auto&button:key.second){
if(button->renderInMain){
button->_DrawDecal(game,pos,this==Menu::stack.back());
button->_DrawDecal(game,{0,0},this==Menu::stack.back());
}
}
}
@@ -588,5 +588,5 @@ void Menu::AddInventoryListener(MenuComponent*component,ITCategory category){
}
vf2d Menu::center(){
return pos+size/2;
return size/2;
}