Correct the parsing of comma-separated descriptions for class previews. Move Wizard Render slightly to the right.

pull/28/head
sigonasr2 1 year ago
parent d5055b2f2b
commit 47d7c02bb6
  1. 8
      Crawler/Player.h
  2. 2
      Crawler/Version.h
  3. 2
      Crawler/assets/config/classes/Wizard.txt
  4. BIN
      Crawler/assets/wizard_full_render.png
  5. BIN
      Crawler/assets/wizard_full_render.xcf
  6. 8
      Crawler/olcUTIL_DataFile.h

@ -416,7 +416,7 @@ struct Witch:Player{
class::rightClickAbility={ \ class::rightClickAbility={ \
#class".Right Click Ability.Name"_S, \ #class".Right Click Ability.Name"_S, \
#class".Right Click Ability.Short Name"_S, \ #class".Right Click Ability.Short Name"_S, \
#class".Right Click Ability.Description"_S, \ #class".Right Click Ability.Description"_s.concat(), \
#class".Right Click Ability.Cooldown"_F, \ #class".Right Click Ability.Cooldown"_F, \
#class".Right Click Ability.Mana Cost"_I, \ #class".Right Click Ability.Mana Cost"_I, \
&KEY_DEFENSIVE, \ &KEY_DEFENSIVE, \
@ -429,7 +429,7 @@ struct Witch:Player{
class::ability1={ \ class::ability1={ \
#class".Ability 1.Name"_S, \ #class".Ability 1.Name"_S, \
#class".Ability 1.Short Name"_S, \ #class".Ability 1.Short Name"_S, \
#class".Ability 1.Description"_S, \ #class".Ability 1.Description"_s.concat(), \
#class".Ability 1.Cooldown"_F, \ #class".Ability 1.Cooldown"_F, \
#class".Ability 1.Mana Cost"_I, \ #class".Ability 1.Mana Cost"_I, \
&KEY_ABILITY1, \ &KEY_ABILITY1, \
@ -442,7 +442,7 @@ struct Witch:Player{
class::ability2={ \ class::ability2={ \
#class".Ability 2.Name"_S, \ #class".Ability 2.Name"_S, \
#class".Ability 2.Short Name"_S, \ #class".Ability 2.Short Name"_S, \
#class".Ability 2.Description"_S, \ #class".Ability 2.Description"_s.concat(), \
#class".Ability 2.Cooldown"_F, \ #class".Ability 2.Cooldown"_F, \
#class".Ability 2.Mana Cost"_I, \ #class".Ability 2.Mana Cost"_I, \
&KEY_ABILITY2, \ &KEY_ABILITY2, \
@ -455,7 +455,7 @@ struct Witch:Player{
class::ability3={ \ class::ability3={ \
#class".Ability 3.Name"_S, \ #class".Ability 3.Name"_S, \
#class".Ability 3.Short Name"_S, \ #class".Ability 3.Short Name"_S, \
#class".Ability 3.Description"_S, \ #class".Ability 3.Description"_s.concat(), \
#class".Ability 3.Cooldown"_F, \ #class".Ability 3.Cooldown"_F, \
#class".Ability 3.Mana Cost"_I, \ #class".Ability 3.Mana Cost"_I, \
&KEY_ABILITY3, \ &KEY_ABILITY3, \

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

@ -154,7 +154,7 @@ Wizard
# Whether or not this ability cancels casts. # Whether or not this ability cancels casts.
CancelCast = 0 CancelCast = 0
Description = Shoot an electrically charged bolt at enemies, spreads to two other targets upon impact. Description = Shoot an electrically charged bolt, spreads to two other targets upon impact.
#RGB Values. Color 1 is the circle at full cooldown, Color 2 is the color at empty cooldown. #RGB Values. Color 1 is the circle at full cooldown, Color 2 is the color at empty cooldown.
Cooldown Bar Color 1 = 64, 0, 0, 192 Cooldown Bar Color 1 = 64, 0, 0, 192

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

@ -482,6 +482,14 @@ namespace olc::utils
inline datafilestringdata(datafile&dat,std::string key) inline datafilestringdata(datafile&dat,std::string key)
:data(dat),key(key){}; :data(dat),key(key){};
std::string operator[](int index){return data.get().GetProperty(key).GetString(index);}; std::string operator[](int index){return data.get().GetProperty(key).GetString(index);};
inline std::string concat(){
std::string finalStr="";
for(std::string&str:data.get().GetProperty(key).GetValues()){
if(finalStr.length()>0)finalStr+=", ";
finalStr+=str;
}
return finalStr;
}
}; };
class datafileintdata class datafileintdata
{ {

Loading…
Cancel
Save