Implement Thief Hidden Dagger attack. Add in missing icons for Elixir of the Wind and Recovery Potions. Release Build 10061.

mac-build
sigonasr2 4 months ago
parent 10f5521ec2
commit 453be13395
  1. 4
      Adventures in Lestoria/Bullet.cpp
  2. 1
      Adventures in Lestoria/Bullet.h
  3. 20
      Adventures in Lestoria/Thief.cpp
  4. 2
      Adventures in Lestoria/Version.h
  5. 9
      Adventures in Lestoria/assets/config/classes/Thief.txt
  6. 1
      Adventures in Lestoria/assets/config/gfx/gfx.txt
  7. BIN
      Adventures in Lestoria/assets/dagger.png
  8. BIN
      Adventures in Lestoria/assets/gamepack.pak
  9. BIN
      Adventures in Lestoria/assets/items/Elixir of the Wind.png
  10. BIN
      Adventures in Lestoria/assets/items/Recovery Potion.png
  11. BIN
      x64/Release/Adventures in Lestoria.exe

@ -197,11 +197,11 @@ BulletDestroyState Bullet::_MonsterHit(Monster&monster){
return destroyBullet;
}
BulletDestroyState Bullet::PlayerHit(Player*player){
if(!hitsMultiple)fadeOutTime=0.1f;
if(!hitsMultiple)fadeOutTime=0.15f;
return BulletDestroyState::KEEP_ALIVE;
}
BulletDestroyState Bullet::MonsterHit(Monster&monster){
if(!hitsMultiple)fadeOutTime=0.1f;
if(!hitsMultiple)fadeOutTime=0.15f;
return BulletDestroyState::KEEP_ALIVE;
}
bool Bullet::OnUpperLevel(){return upperLevel;}

@ -87,6 +87,7 @@ private:
BulletType type{BulletType::UNDEFINED};
bool deactivated{false};
double aliveTime{};
float onContactFadeoutTime{}; //What fadeouttime will be set to when the bullet hits a monster.
protected:
float drawOffsetY{};
BulletDestroyState _PlayerHit(Player*player); //Return true to destroy the bullet on hit, return false otherwise. THE BULLET HIT HAS ALREADY OCCURRED.

@ -106,10 +106,26 @@ void Thief::InitializeClassAbilities(){
return false;
};
#pragma endregion
#pragma region Thief Ability 1 (???)
#pragma region Thief Ability 1 (Hidden Dagger)
Thief::ability1.action=
[](Player*p,vf2d pos={}){
return false;
geom2d::line mouseDir{p->GetWorldAimingLocation(Player::USE_WALK_DIR),p->GetPos()};
float velocity=(0.5f*-p->friction*"Thief.Ability 1.RetreatTime"_F*"Thief.Ability 1.RetreatTime"_F-24.f*"Thief.Ability 1.RetreatDistance"_F/100)/-"Thief.Ability 1.RetreatTime"_F; //Derived from kinetic motion formula.
p->SetVelocity(mouseDir.vector().norm()*velocity);
p->retreatTimer="Thief.Ability 1.RetreatTime"_F;
p->ApplyIframes("Thief.Ability 1.RetreatTime"_F);
p->ghostPositions.push_back(p->GetPos()+vf2d{0,-p->GetZ()});
p->ghostFrameTimer=p->RETREAT_GHOST_FRAME_DELAY;
p->ghostRemoveTimer=p->RETREAT_GHOST_FRAMES*p->RETREAT_GHOST_FRAME_DELAY;
float angleToCursor=atan2(p->GetWorldAimingLocation(Player::USE_WALK_DIR).y-p->GetPos().y,p->GetWorldAimingLocation(Player::USE_WALK_DIR).x-p->GetPos().x);
const float daggerLifetime{"Thief.Ability 1.Dagger Range"_F/"Thief.Ability 1.Dagger Speed"_F};
CreateBullet(Bullet)(p->GetPos(),vf2d{"Thief.Ability 1.Dagger Speed"_F,angleToCursor}.cart(),"Thief.Ability 1.Dagger Radius"_F,p->GetAttack()*"Thief.Ability 1.Damage"_I,"dagger.png",p->OnUpperLevel(),false,daggerLifetime,true,true)EndBullet;
p->SetAnimationBasedOnTargetingDirection(angleToCursor);
p->SetState(State::RETREAT);
SoundEffect::PlaySFX("Thief.Ability 1.Sound"_S,SoundEffect::CENTERED);
return true;
};
#pragma endregion
#pragma region Thief Ability 2 (???)

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_PATCH 3
#define VERSION_BUILD 10053
#define VERSION_BUILD 10061
#define stringify(a) stringify_(a)
#define stringify_(a) #a

@ -59,8 +59,15 @@ Thief
# Whether or not this ability cancels casts.
CancelCast = 1
Jump Range = 200
Damage = 2x
Dagger Speed = 300
Dagger Range = 1000
Dagger Radius = 9px
# How long the retreat takes.
RetreatTime = 0.2
# The distance the retreat moves the Thief.
RetreatDistance = 200
Sound = Ranger Retreat
#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

@ -107,6 +107,7 @@ Images
GFX_SafeAreaIndicator = safeIndicatorGradient.png
GFX_Feather = feather.png
GFX_LargeRock = large_rock.png
GFX_Dagger = dagger.png
GFX_Thief_Sheet = nico-thief.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 4.4 KiB

Loading…
Cancel
Save