diff --git a/dGame/dComponents/SkillComponent.cpp b/dGame/dComponents/SkillComponent.cpp index cacb10df8..9eb125e0f 100644 --- a/dGame/dComponents/SkillComponent.cpp +++ b/dGame/dComponents/SkillComponent.cpp @@ -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(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(u"shot_done", sync_entry.lot); m_Parent->OnActivityNotify(notify); } diff --git a/dGame/dComponents/SkillComponent.h b/dGame/dComponents/SkillComponent.h index 191874a0a..3977b22ed 100644 --- a/dGame/dComponents/SkillComponent.h +++ b/dGame/dComponents/SkillComponent.h @@ -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