Correctly set category params for enemies placed
@@ -465,8 +465,20 @@ def get_placement_category_for_vanilla_enemy_location(self, enemy_data, enemy):
raise Exception("Unknown placement category for enemy: actor name \"%s\", params %08X, aux params %04X, aux params 2 %04X" % (enemy.name, enemy.params, enemy.auxilary_param, enemy.auxilary_param_2))
def set_enemy_params_for_placement_category(self, enemy_data, enemy, category):
- # TODO
- pass
+ if enemy.name == "Bk":
+ if category == "Pot":
+ enemy.bokoblin_type = 3
+ elif enemy.name in ["c_green", "c_red", "c_kiiro", "c_blue", "c_black"]:
+ if category == "Ceiling":
+ enemy.chuchu_behavior_type = 1
+ elif category == "Pot":
+ enemy.chuchu_behavior_type = 4
+ elif enemy.name == "Bb":
+ if category == "Ground":
+ enemy.kargaroc_behavior_type = 4
+ elif enemy.name in ["kuro_s", "kuro_t"]:
+ if category == "Pot":
+ enemy.morth_behavior_type = 6
def get_enemy_and_arc_name_for_path(self, path):
match = re.search(r"^([^/]+/[^/]+\.arc)(?:/Layer([0-9a-b]))?/Actor([0-9A-F]{3})$", path)
