Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

LASSAT issue in eventStructureReady() #3506

Closed
wzdev-ci opened this issue May 22, 2012 · 7 comments
Closed

LASSAT issue in eventStructureReady() #3506

wzdev-ci opened this issue May 22, 2012 · 7 comments

Comments

@wzdev-ci
Copy link
Contributor

keyword_eventstructureready keyword_lassat keyword_rules keyword_stattype resolution_fixed type_bug | by aubergine


This problem is found in rules.js, but I assume it will affect AI scripts as well?

function eventStructureReady(struct) {
  // struct.stattype == 6
  // LASSAT == 999
}

Either the LASSAT constant's wrong or the stattype of the passed in object is wrong.

Most AI scripts I've seen don't check what stattype the struct is hence this issue probably not being reported before.


Issue migrated from trac:3506 at 2022-04-16 09:50:51 -0700

@wzdev-ci
Copy link
Contributor Author

aubergine commented


Update - it's the stattype that's wrong for laser satellite.

6 = DEFENSE

So laser satellite structure object should not be 6, as it is treated separately from other defences - so I guess it's stattype should be 999.

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen commented


qtscript: Set .stattype of a Laser Satellite building to correct ID. Closes #3506

  • Changeset: [/changeset/7dbe64278c23883253f1fbd0ae830332e85eb6b8 7dbe64278c23883253f1fbd0ae830332e85eb6b8]
  • URL: [7]dbe64278c23883253f1fbd0ae830332e85eb6b8

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen commented


qtscript: Set .stattype of a Laser Satellite building to correct ID. Closes #3506

  • Changeset: [/changeset/7dbe64278c23883253f1fbd0ae830332e85eb6b8 7dbe64278c23883253f1fbd0ae830332e85eb6b8]
  • URL: [7]dbe64278c23883253f1fbd0ae830332e85eb6b8

2 similar comments
@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen commented


qtscript: Set .stattype of a Laser Satellite building to correct ID. Closes #3506

  • Changeset: [/changeset/7dbe64278c23883253f1fbd0ae830332e85eb6b8 7dbe64278c23883253f1fbd0ae830332e85eb6b8]
  • URL: [7]dbe64278c23883253f1fbd0ae830332e85eb6b8

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 4, 2012

Per Inge Mathisen commented


qtscript: Set .stattype of a Laser Satellite building to correct ID. Closes #3506

  • Changeset: [/changeset/7dbe64278c23883253f1fbd0ae830332e85eb6b8 7dbe64278c23883253f1fbd0ae830332e85eb6b8]
  • URL: [7]dbe64278c23883253f1fbd0ae830332e85eb6b8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant