SWGEmu SWGEMU-569

NPC lair fix

Closed on 07 Feb

  •  
  •  
  •  
  •  
  • Author
  • Moderator
  • Reviewers

SWGEMU-569 5

Summarize the review outcomes (optional)
 
#permalink

Details

Warning: no files are visible, they have all been filtered.
Participant Role Time Spent Comments Latest Comment
Author 35m 2 I've made both changes you suggested. The third patch is ...
Moderator      
Reviewer - 0% complete      
Reviewer - 100% complete 15m 3 Remove negation and check for equality with LairTemplate:...
Reviewer - 0% complete      
Reviewer - 0% complete      
oru
Reviewer - 0% complete      
Reviewer - 0% complete      
Reviewer - 5% complete 1m    
Total   51m 5  
#permalink

Objectives

[Fixed] NPC lairs (missions) to no longer spawn additional mobs when the lair is attacked. Increased the number of initial spawns slightly at NPC lairs.

In order to accomplish this I added a new member to LairTemplate.h in order to distinguish between a creature lair and an NPC lair. I figured this was a better solution than looking at the mobiles attached to the lair because there can be multiple mobiles and there can even be a mix of creatures and NPCs attached to a lair. The spawner tool will probably need to be updated to allow the lairType to be set when generating a lair.

I also added a check to the observer that should have been added with my last lair patch to prevent a lair from spawning mobs beyond the spawnLimit.

#permalink

Summary

Patch committed to unstable branch.

#permalink

Issues Raised From Comments

Key Summary State Assignee
#permalink

General Comments

There are no general comments on this review.
/workspace/.../mobile/LairTemplate.h Changed   2
Open in IDE #permalink
/workspace/.../creature/LairObserverImplementation.cpp Changed   2
Open in IDE #permalink
/workspace/.../mobile/LairTemplate.h Changed   1
Open in IDE #permalink
/workspace/.../lair/criminal_base.lua Changed  
Open in IDE #permalink
/workspace/.../lair/global_imperial_cadet_camp_imperial_small_theater.lua Changed  
Open in IDE #permalink
/workspace/.../lair/global_imperial_cadet_senior_camp_imperial_small_theater.lua Changed  
Open in IDE #permalink
/workspace/.../lair/global_imperial_cadet_squadleader_camp_imperial_small_theater.lua Changed  
Open in IDE #permalink
/workspace/.../lair/global_rebel_patrol_camp_rebel_small_theater.lua Changed  
Open in IDE #permalink
/workspace/.../lair/global_rebel_resistance_anarchist_camp_rebel_small_theater.lua Changed  
Open in IDE #permalink
/workspace/.../lair/global_rebel_resistance_dissident_camp_rebel_small_theater.lua Changed  
Open in IDE #permalink
/workspace/.../lair/global_stormtrooper.lua Changed  
Open in IDE #permalink
/workspace/MMOCoreORB/.../lair/imperial.lua Changed  
Open in IDE #permalink
/workspace/.../lair/imperial_banner.lua Changed  
Open in IDE #permalink
/workspace/MMOCoreORB/.../mobile/lair/lair.lua Changed  
Open in IDE #permalink
/workspace/MMOCoreORB/.../lair/rebel.lua Changed  
Open in IDE #permalink
/workspace/MMOCoreORB/.../lair/rebel_npc.lua Changed  
Open in IDE #permalink
/workspace/.../creature/LairObserverImplementation.cpp Changed  
Open in IDE #permalink
/workspace/.../mobile/LairTemplate.h Changed  
Open in IDE #permalink

Review updated: Reload | Ignore | Collapse

You cannot reload the review while writing a comment.

Create Issue

X
Assign To Me

Log time against