Witch dynamic ability descriptions implemented. Made ability descriptions on class selection window display proper damag values based on a level 1 character of that class instead of defaulting to Warrior's base attack. Release Build 13643.
Some checks failed
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 8m7s
Emscripten Build / UnitTesting (push) Failing after 9m12s

This commit is contained in:
AMay 2026-05-19 15:32:21 -05:00
parent 48529d8c54
commit a9b63001eb
3 changed files with 9 additions and 6 deletions

View File

@ -48,11 +48,14 @@ INCLUDE_DATA
using A=Attribute;
void Menu::InitializeClassInfoWindow(){
Menu*classInfoWindow=CreateMenu(CLASS_INFO,CENTERED,game->GetScreenSize()-vi2d{24,0});
Menu*classSelectionWindow=Menu::menus[CLASS_SELECTION];
ClassInfo data=classutils::GetClassInfo(classSelectionWindow->S(A::CLASS_SELECTION));
game->GetPlayer()->SetBaseStat("Attack",data.baseAtk);
auto label=classInfoWindow->ADD("Class Name",MenuLabel)(geom2d::rect<float>{{0,0},{classInfoWindow->size.x-1,24}},data.className,2,ComponentAttr::SHADOW|ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND)END;
classInfoWindow->ADD("Rotating Character Display",CharacterRotatingDisplay)(geom2d::rect<float>{{-20,30},{144,180}},GFX[data.classFullImgName].Decal())END;

View File

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

View File

@ -61,7 +61,7 @@ Witch
{
Name = Curse of Pain
Short Name = PAIN
Description = Apply a curse on a target dealing damage over time.
Description = Apply a curse on a target dealing {DamageMult:Curse Debuff[0]} damage every {Curse Debuff[1]} over {Curse Debuff[2]}. The final tick deals {DamageMult:Final Tick Damage} damage.
Icon = curse_of_pain.png
Cooldown = 8
Mana Cost = 35
@ -69,7 +69,7 @@ Witch
CancelCast = 0
# Damage per tick, time between ticks, total curse duration
Curse Debuff = 1x, 2s, 8s
Curse Debuff = 1x, 2 seconds, 8 seconds
Final Tick Damage = 2x
#RGB Values. Color 1 is the circle at full cooldown, Color 2 is the color at empty cooldown.
@ -84,7 +84,7 @@ Witch
{
Name = Throw Poison
Short Name = POISON
Description = Throw a poison bottle at target location. All targets caught in the range take poison damage over time.
Description = Throw a poison bottle dealing {DamageMult:Damage Mult} damage at target location. All targets also take {DamageMult:Poison Debuff[0]} poison damage every {Poison Debuff[1]} over {Poison Debuff[2]}.
Icon = throw_poison.png
Cooldown = 16
Mana Cost = 40
@ -93,7 +93,7 @@ Witch
Damage Mult = 5x
# Damage per tick, time between ticks, total debuff time
Poison Debuff = 0.5x, 3s, 30s
Poison Debuff = 0.5x, 3 seconds, 30 seconds
Toss Max Range Time = 0.5s
Toss Max Z = 12px
@ -110,7 +110,7 @@ Witch
{
Name = Curse of Death
Short Name = DEATH
Description = Target is cursed with a debilitating spell, taking double damage for 7 seconds.
Description = Target is cursed with a debilitating spell, taking {Damage Amplification} extra damage for 7 seconds.
Icon = curse_of_death.png
Cooldown = 35
Mana Cost = 35