Implemented new description variable text for Thief. Release Build 13630.
Some checks failed
Emscripten Build / Build_and_Deploy_Web_Build (push) Failing after 1m25s
Emscripten Build / UnitTesting (push) Failing after 8m16s

This commit is contained in:
AMay 2026-05-15 16:23:22 -05:00
parent 4eed7d722d
commit 65e7520dab
3 changed files with 31 additions and 10 deletions

View File

@ -125,7 +125,8 @@ const std::string Ability::GetDescriptionWithPlayerModifiers()const{
}else {
enum SymbolIndicator{
MULTIPLICATION, //*
KEY_VALUE_PAIR, //:
KEY_VALUE_PAIR,
ARRAY, //[
NOT_FOUND,
};
@ -136,8 +137,19 @@ const std::string Ability::GetDescriptionWithPlayerModifiers()const{
};
SymbolIndicator indicator{NOT_FOUND};
if(variableName.find(':')!=std::string::npos)indicator=KEY_VALUE_PAIR;
else if(variableName.find('*')!=std::string::npos)indicator=MULTIPLICATION;
safemap<char,SymbolIndicator>recognizedSymbols;
recognizedSymbols[':']=KEY_VALUE_PAIR;
recognizedSymbols['*']=MULTIPLICATION;
recognizedSymbols['[']=ARRAY;
recognizedSymbols.SetInitialized();
for(auto&[c,symbolIndicator]:recognizedSymbols){
if(variableName.find(c)!=std::string::npos){
indicator=symbolIndicator;
break;
}
}
switch(indicator){
case MULTIPLICATION:{
std::vector<std::string>tokens{util::Tokenize(variableName,'*')};
@ -162,6 +174,15 @@ const std::string Ability::GetDescriptionWithPlayerModifiers()const{
return true;
}
}break;
case ARRAY:{
std::vector<std::string>tokens{util::Tokenize(variableName,'[')};
if(tokens.size()!=2)ERR("[] variable syntax only allows 2 arguments. Ex. Key[ind]. Arguments found: "<<tokens.size());
std::string separatorKey{tokens.at(0)};
size_t index{stoull(tokens.at(1))};
if(!data.HasProperty(separatorKey))return false; //Could not be found in this section, will need to seek in another location.
AddToDescription(specialValCol.toHTMLColorCode()+data.GetProperty(separatorKey).GetString(index)+WHITE.toHTMLColorCode());
return true;
}break;
}
}
return false;

View File

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

View File

@ -30,7 +30,7 @@ Thief
{
Name = Roll
Short Name = ROLL
Description = Roll in a direction and gain increased movement speed for 2 seconds.
Description = Roll in a direction and gain {Movespeed Buff[0]} for {Movespeed Buff[1]}.
Icon = roll.png
Cooldown = 8
Mana Cost = 0
@ -38,7 +38,7 @@ Thief
CancelCast = 1
# % speed increase, duration
Movespeed Buff = 30%, 2s
Movespeed Buff = 30%, 2 seconds
Roll Time = 0.3s
Iframe Time = 0.5s
# How fast one period of the roll bounce cycle is.
@ -60,7 +60,7 @@ Thief
{
Name = Hidden Dagger
Short Name = DAGGER
Description = Jump backwards while throwing a dagger. The dagger deals {DamageMult:Damage}
Description = Jump backwards while throwing a dagger. The dagger deals {DamageMult:Damage} damage.
Icon = hidden_dagger.png
Cooldown = 8
Mana Cost = 20
@ -90,7 +90,7 @@ Thief
{
Name = Deadly Dash
Short Name = DASH
Description = Dash to target location becoming invulnerable and damaging everything in the Thief's path.
Description = Dash to target location becoming invulnerable and dealing {DamageMult:Damage} damage to targets in the Thief's path.
Icon = deadly_dash.png
Cooldown = 15
Mana Cost = 45
@ -121,7 +121,7 @@ Thief
{
Name = Adrenaline Rush
Short Name = RUSH
Description = Gain 30% increased attack speed and 10% increased movement speed for 8 seconds.
Description = Gain {Attack Speed Increase} increased attack speed and {Movement Speed Increase} increased movement speed for {Duration}.
Icon = adrenaline_rush.png
Cooldown = 37
Mana Cost = 75
@ -130,7 +130,7 @@ Thief
Attack Speed Increase = 30%
Movement Speed Increase = 10%
Duration = 8s
Duration = 8 seconds
#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