SWGEmu SWGEMU-558

Special Attack Chance for Creature Template

Under Review for 3 months (due 3 months ago)

  •  
  •  
  •  
  •  
  • Author
  • Moderator
  • Reviewers

SWGEMU-558 8

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 58m 4 Like I mentioned in the other review, It's not me. I'm a ...
Moderator      
Reviewer - 0% complete      
Reviewer - 33% complete 3m 1 We have started to use Gerrit for reviews instead of Fish...
Reviewer - 0% complete      
Reviewer - 100% complete 7m 3 Okay, I was just wondering why this was in here. But it w...
oru
Reviewer - 0% complete      
Reviewer - 0% complete      
Reviewer - 100% complete 0m    
Reviewer - 100% complete 5m    
Total   1h 13m 8  
#permalink

Objectives

As requested, here is the individual implementation for special attack chance.
Should be pretty straight forward without the need for further description.

Just a note. We can get a random float for availableAttackChance through:

float availableAttackChance = System::random(99) + (System::random(100) / 100.f);

This allows for a random float with 2 digits of precision.
Or we can represent decimals like its done for the loot chance.
Regardless, I didn't see a need for it currently, so I left this way.

It also contains a fix for queueing the second attack.

#permalink

Issues Raised From Comments

Key Summary State Assignee
#permalink

General Comments

17 Mar

Loshult says:

We have started to use Gerrit for reviews instead of Fishey. Please follow the instructions on the following page: https://www.assembla.com/spaces/swgemu/wiki/Git_Gerrit_and_Jenkins and push your patch to Gerrit instead.

/MMOCoreORB/.../variables/CreatureAttackMap.h Changed  
Open in IDE #permalink
/MMOCoreORB/.../creature/AiAgentImplementation.cpp Changed   7
Open in IDE #permalink
/MMOCoreORB/.../mobile/CreatureTemplate.cpp 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