From a203288678debf3952964bf2bf54a38abe8386dd Mon Sep 17 00:00:00 2001 From: Mr-Auto <36127424+Mr-Auto@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:48:06 +0200 Subject: [PATCH] fix build 2 --- docs/parse_source.py | 5 ++--- src/game_api/entities_monsters.hpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/parse_source.py b/docs/parse_source.py index f7605b1d9..68fd4375e 100644 --- a/docs/parse_source.py +++ b/docs/parse_source.py @@ -638,6 +638,7 @@ def run_parse(): and item["member_funs"][func_name] and len(item["member_funs"][func_name]) > 0 ): + # choosing the last one since that's the actual virtual signature most of the time func = item["member_funs"][func_name][-1] vtable_entries[name] = { "name": name, @@ -648,9 +649,7 @@ def run_parse(): "binds": binds, } else: - signature = re.search( - r"([_a-zA-Z][\w]*.*)\((.*)\)", signature - ) + signature = re.search(r"([_a-zA-Z][\w]*.*)\((.*)\)", signature) ret = signature.group(1) args = [t for t in signature.group(2).split(",")] vtable_entries[name] = { diff --git a/src/game_api/entities_monsters.hpp b/src/game_api/entities_monsters.hpp index 4777b62d1..be6c7f2a1 100644 --- a/src/game_api/entities_monsters.hpp +++ b/src/game_api/entities_monsters.hpp @@ -581,7 +581,7 @@ class Anubis : public Monster bool awake; virtual void set_next_attack_timer() = 0; // sets next_attack_timer based on the psychic_orbs_counter - virtual void attack() = 0; + virtual void normal_attack() = 0; virtual void play_attack_sound() = 0; // also calls virtual 20 };