Opened 13 years ago

Closed 13 years ago

#991 closed defect (fixed)

[PATCH] add attackStrengths and armorStrengths functions to ai api for bots

Reported by: infyquest Owned by:
Priority: Should Have Milestone: Alpha 8
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

Adds attackStrengths and armorStrengths functions to ai api for bots. This will help for all the bots in accessing their strengths and enemies strengths.

this removes todo in entity.js for attack and armor

Attachments (2)

0002-add-attack-and-armor-related-functions-to-entity-api.patch (1.3 KB ) - added by infyquest 13 years ago.
0002-add-attack-and-armor-related-functions-to-entity-api-try-2.patch (1.3 KB ) - added by infyquest 13 years ago.
fix a small typo

Download all attachments as: .zip

Change History (8)

comment:1 by ben, 13 years ago

Resolution: fixed
Status: newclosed

(In [10393]) Adds armour and attack strengths to AI entity template, based on patch by infyquest. Fixes #991.

comment:2 by historic_bruno, 13 years ago

Keywords: review removed

comment:3 by Jonathan Waller, 13 years ago

Resolution: fixed
Status: closedreopened

In your modified patch you have missed out some important properties. RepeatTime, PrepareTime and ProjectileSpeed. RepeatTime is essential for accurately calculating the attack strength of a unit, the others would be nice to have for completeness.

comment:4 by ben, 13 years ago

Resolution: fixed
Status: reopenedclosed

(In [10407]) Adds attackTimes to AI entity templates. Fixes #991.

comment:5 by Jonathan Waller, 13 years ago

Resolution: fixed
Status: closedreopened
Type: enhancementdefect

There was an error in commit [10407]. It should be:

prepare: +(this._template.Attack[type].PrepareTimerepeat: +(this._template.Attack[type].RepeatTime
0),
1000)

comment:6 by ben, 13 years ago

Resolution: fixed
Status: reopenedclosed

(In [10412]) Fixes error in AI entity. Fixes #991.

Note: See TracTickets for help on using tickets.