Skip to content

Capacitor calculation not working #16

@Blaumeise03

Description

@Blaumeise03

Netease has changed the way the capacitor gets calculated. The file effects.json does not contain the key discharge_attribute_id anymore, that used to reference what type of energy a module used. Previously, it contained either 310 for capacitor, or 650 for fuel (or not set if the module needs neither).
Instead the file now contains two booleans consume_cap and consume_fuel for every effect that decides what kind of energy an item uses. The attribute ids are hardcoded into the game (dogma_common/dogma_const_keys.py -> DogmaAttribute class) instead.

We can either change the capacitor simulator of sweet to reflect the new system (there might be items that consume both capacitor and fuel in the future), or we just insert the two values into the effects table when creating the database export. The first solution would break all existing iOS users, as they can't obtain the update through the app store at the moment.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggame mechanicProblems with game mechanics

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions