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.

mac-build
sigonasr2 8 months ago
parent 31ccdee2f5
commit d98d127861
  1. 2
      Adventures in Lestoria/Version.h
  2. 13
      Adventures in Lestoria/VisualNovel.cpp
  3. 2
      Adventures in Lestoria/assets/config/classes/Wizard.txt
  4. BIN
      Adventures in Lestoria/assets/gamepack.pak
  5. BIN
      x64/Release/Adventures in Lestoria.exe

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

@ -102,6 +102,11 @@ void VisualNovel::Initialize(){
for(std::string&arg:arguments){ for(std::string&arg:arguments){
if(arg=="story_player_name"_S){ if(arg=="story_player_name"_S){
graphicsToLoad.insert("character_image_location"_S+"Player_F.png"); 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"); graphicsToLoad.insert("character_image_location"_S+"Player_M.png");
}else{ }else{
graphicsToLoad.insert("character_image_location"_S+arg+".png"); graphicsToLoad.insert("character_image_location"_S+arg+".png");
@ -301,7 +306,15 @@ void VisualNovel::Draw(){
} }
std::string VisualNovel::GetCharacterImage(std::u32string name){ std::string VisualNovel::GetCharacterImage(std::u32string name){
if(name==U"You"){ //Assume we are using female player avatar for now! 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"; 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"; return "character_image_location"_S+std::string(name.begin(),name.end())+".png";
} }

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

Loading…
Cancel
Save