Skip to content

Commit

Permalink
Merge pull request #1716 from heinezen/fix/effect_apply_type
Browse files Browse the repository at this point in the history
Change type of 'effect_apply_type' to 'uint8_t'
  • Loading branch information
TheJJ authored Nov 25, 2024
2 parents c4c75fe + f372a2b commit 1b763cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@

EFFECT_APPLY_TYPE = {
# unused assignage: a = -1, b = -1, c = -1, d = 0
-1: "DISABLED",
255: "DISABLED",
# if a != -1: a == unit_id, else b == unit_class_id; c =
# attribute_id, d = new_value
0: "ATTRIBUTE_ABSSET",
Expand Down Expand Up @@ -340,9 +340,10 @@
102: "TECH_TOGGLE", # d == research_id
103: "TECH_TIME_MODIFY", # a == research_id, if c == 0: d==absval else d==relval

-54: "UNKNOWN", # 199: "UNKNOWN",
-55: "UNKNOWN", # 200: "UNKNOWN",
-56: "UNKNOWN", # 201: "UNKNOWN",
# unknown; used in DE2 BfG
199: "UNKNOWN",
200: "UNKNOWN",
201: "UNKNOWN",

# attribute_id:
# 0: hit points
Expand Down
4 changes: 2 additions & 2 deletions openage/convert/value_object/read/media/datfile/tech.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2023 the openage authors. See copying.md for legal info.
# Copyright 2013-2024 the openage authors. See copying.md for legal info.

# TODO pylint: disable=C,R
from __future__ import annotations
Expand Down Expand Up @@ -31,7 +31,7 @@ def get_data_format_members(
"""
data_format = [
(READ_GEN, "type_id", StorageType.ID_MEMBER, EnumLookupMember(
raw_type="int8_t",
raw_type="uint8_t",
type_name="effect_apply_type",
lookup_dict=EFFECT_APPLY_TYPE
)),
Expand Down

0 comments on commit 1b763cc

Please sign in to comment.