Implement visual novel Wizard player character. Change displayed character image based on class selection. Change image for display on Equip and class info window for the Wizard. Release Build 8925.

This commit is contained in:
sigonasr2 2024-04-14 15:43:18 -05:00
parent 31ccdee2f5
commit d98d127861
5 changed files with 16 additions and 3 deletions

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 1
#define VERSION_PATCH 0
#define VERSION_BUILD 8923
#define VERSION_BUILD 8925
#define stringify(a) stringify_(a)
#define stringify_(a) #a

View File

@ -102,6 +102,11 @@ void VisualNovel::Initialize(){
for(std::string&arg:arguments){
if(arg=="story_player_name"_S){
graphicsToLoad.insert("character_image_location"_S+"Player_F.png");
graphicsToLoad.insert("character_image_location"_S+"Wizard_F.png");
graphicsToLoad.insert("character_image_location"_S+"Ranger_F.png");
graphicsToLoad.insert("character_image_location"_S+"Trapper_F.png");
graphicsToLoad.insert("character_image_location"_S+"Thief_F.png");
graphicsToLoad.insert("character_image_location"_S+"Witch_F.png");
graphicsToLoad.insert("character_image_location"_S+"Player_M.png");
}else{
graphicsToLoad.insert("character_image_location"_S+arg+".png");
@ -301,7 +306,15 @@ void VisualNovel::Draw(){
}
std::string VisualNovel::GetCharacterImage(std::u32string name){
if(name==U"You"){ //Assume we are using female player avatar for now!
switch(game->GetPlayer()->GetClass()){
case Class::WARRIOR:{
return "character_image_location"_S+"Player_F.png";
}break;
case Class::WIZARD:{
return "character_image_location"_S+"Wizard_F.png";
}break;
default:return "character_image_location"_S+"Player_F.png";
}
}
return "character_image_location"_S+std::string(name.begin(),name.end())+".png";
}

View File

@ -10,7 +10,7 @@ Wizard
# Amount of attack gained per level.
AtkGrowthRate = 4
FullRender = wizard_full_render.png
FullRender = characters/commercial_assets/Wizard_F_NoOutline.png
Auto Attack
{