mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-30 01:41:40 +00:00
fix(skills): shot_done names the projectile LOT, not the skill
The shooting gallery script compares shot_done with its super charge cannon ball's LOT (6297 for GF; skill 249 launches it, skill 228 the normal ball 1822). Also give the count of projectiles still in the air, the script's cannonball group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -198,7 +198,8 @@ void SkillComponent::SyncPlayerProjectile(const LWOOBJID projectileId, RakNet::B
|
||||
this->m_managedProjectiles.erase(this->m_managedProjectiles.begin() + index);
|
||||
|
||||
GameMessages::ActivityNotify notify;
|
||||
notify.notification.Insert<int32_t>(u"shot_done", sync_entry.skillId);
|
||||
// The projectile's LOT: sg_cannon.lua compares it with its super charge cannon ball (6297)
|
||||
notify.notification.Insert<int32_t>(u"shot_done", sync_entry.lot);
|
||||
m_Parent->OnActivityNotify(notify);
|
||||
}
|
||||
|
||||
|
||||
@@ -166,6 +166,10 @@ public:
|
||||
*/
|
||||
void RegisterPlayerProjectile(LWOOBJID projectileId, BehaviorContext* context, const BehaviorBranchContext& branch, LOT lot);
|
||||
|
||||
// The projectiles it launched that have not come back yet (a shooting gallery's cannon balls in the air: its
|
||||
// "cannonball" group)
|
||||
size_t GetManagedProjectileCount() const { return m_managedProjectiles.size(); }
|
||||
|
||||
/**
|
||||
* Wrapper for CalculateBehavior that mimics the call structure in scripts and helps reduce magic numbers
|
||||
* @param skillId the skill to cast
|
||||
|
||||
Reference in New Issue
Block a user