detopoi il y a 3 mois
Parent
commit
78a641e292

+ 83 - 2
client_local/level/level.py

@@ -275,6 +275,7 @@ class Level:
         self.earth_quake_decrease = True  # 地震强度是否递减
 
         self.current_time = pygame.time.get_ticks()
+        self.background_layers = []  # 地板下方的地图背景图层
         self.floor_image = None  # 游戏主区域的地板背景
         self.flame_instances = None  # FlameInstance对象列表
         self.item_instances = None  # (x, y) --> ItemInstance对象
@@ -355,6 +356,7 @@ class Level:
 
         self.load_map_json()  # 加载地图
         self.load_ui()  # 加载ui界面
+        self.load_background_png()  # 加载地板下方背景
         self.load_floor()  # 加载地板
         self.load_obstacle()  # 加载障碍
         self.load_music()  # 加载音乐
@@ -524,8 +526,9 @@ class Level:
             self.map_ambience = self.map_json["basic"]["ambience"]
         else:
             self.map_ambience = None
-        if "music_volume" in self.map_json["basic"].keys():
-            self.special_music_volume = self.map_json["basic"]["music_volume"]
+        self.special_music_volume = max(
+            0.0, float(self.map_json["basic"].get("music_volume", 1))
+        )
         if "portal" in self.map_json["basic"].keys():
             self.portal = self.map_json["basic"]["portal"]
             for key in self.portal.keys():
@@ -926,9 +929,84 @@ class Level:
         MAX_BIAS = G.MAIN_AREA_Y_POS * (1-Y_SCALE_FACTOR)//2
         screen.fill((0, 0, 0, 0), rect=(0, 21, G.MAIN_AREA_X_POS, MAX_BIAS))
 
+    def load_background_png(self):
+        self.background_layers = []
+        for layer in self.map_json["basic"].get("background_png", []):
+            if isinstance(layer, str):
+                layer = {"name": layer, "move": False}
+            name = layer.get("name")
+            if not name:
+                continue
+            path = name if "/" in name or "\\" in name else f"res/img/background/{name}"
+            image = load_png(path).convert_alpha()
+            if layer.get("move", False):
+                image = self.crop_background_to_map_ratio(image)
+                image = self.scale_background_to_cover_view(image)
+            else:
+                target_size = (G.MAIN_AREA_X_POS, G.MAIN_AREA_Y_POS)
+                if image.get_size() != target_size:
+                    image = pygame.transform.smoothscale(image, target_size).convert_alpha()
+            self.background_layers.append({
+                "image": image,
+                "move": bool(layer.get("move", False)),
+            })
+
+    def crop_background_to_map_ratio(self, image):
+        img_w, img_h = image.get_size()
+        if img_w <= 0 or img_h <= 0 or self.map_y_pos <= 0:
+            return image
+        map_ratio = self.map_x_pos / self.map_y_pos
+        img_ratio = img_w / img_h
+        if img_ratio > map_ratio:
+            crop_w = max(1, int(img_h * map_ratio))
+            crop_rect = pygame.Rect((img_w - crop_w) // 2, 0, crop_w, img_h)
+        else:
+            crop_h = max(1, int(img_w / map_ratio))
+            crop_rect = pygame.Rect(0, (img_h - crop_h) // 2, img_w, crop_h)
+        return image.subsurface(crop_rect).copy()
+
+    def scale_background_to_cover_view(self, image):
+        img_w, img_h = image.get_size()
+        if img_w <= 0 or img_h <= 0:
+            return image
+        scale = max(G.MAIN_AREA_X_POS / img_w, G.MAIN_AREA_Y_POS / img_h, 1)
+        if scale <= 1:
+            return image
+        target_size = (max(1, int(img_w * scale)), max(1, int(img_h * scale)))
+        return pygame.transform.smoothscale(image, target_size).convert_alpha()
+
+    def draw_background_png(self):
+        for layer in self.background_layers:
+            if layer["move"]:
+                image = layer["image"]
+                img_w, img_h = image.get_size()
+                src_x = self.get_background_scroll_pos(
+                    self.scroll_x_pos, self.scroll_x_pos_max, img_w, G.MAIN_AREA_X_POS
+                )
+                src_y = self.get_background_scroll_pos(
+                    self.scroll_y_pos, self.scroll_y_pos_max, img_h, G.MAIN_AREA_Y_POS
+                )
+                area_w = min(G.MAIN_AREA_X_POS, img_w)
+                area_h = min(G.MAIN_AREA_Y_POS, img_h)
+                dest_x = self.scroll_x_pos + max(0, (G.MAIN_AREA_X_POS - img_w) // 2)
+                dest_y = self.scroll_y_pos + max(0, (G.MAIN_AREA_Y_POS - img_h) // 2)
+                self.main_area.blit(image, (dest_x, dest_y), pygame.Rect(src_x, src_y, area_w, area_h))
+            else:
+                self.main_area.blit(layer["image"], (self.scroll_x_pos, self.scroll_y_pos))
+
+    def get_background_scroll_pos(self, scroll_pos, scroll_max, image_size, view_size):
+        bg_scroll_max = max(0, image_size - view_size)
+        if bg_scroll_max <= 0:
+            return 0
+        if scroll_max <= 0:
+            return bg_scroll_max // 2
+        return int(bg_scroll_max * max(0, min(1, scroll_pos / scroll_max)))
+
     def load_floor(self):
         # 加载地板floor
         self.floor_image = pygame.Surface((self.map_x_pos, self.map_y_pos), flags=pygame.HWSURFACE).convert_alpha()
+        if self.background_layers:
+            self.floor_image.fill((0, 0, 0, 0))
         # 块区域加载
         for f in self.map_json["floors"]:
             for square in f["squares"]:
@@ -1337,6 +1415,9 @@ class Level:
             # 上下MAX_BIAS区域填充(0,0,0,0)
             self.main_area.fill((255, 255, 255, 0), (self.scroll_x_pos, self.scroll_y_pos + 21, G.MAIN_AREA_X_POS, MAX_BIAS))
 
+        # 显示地板下方背景
+        self.draw_background_png()
+
         # 显示地板
         self.main_area.blit(
             self.floor_image,

+ 5 - 3
client_local/music/music_loader.py

@@ -8,9 +8,10 @@ ambience_sounds = {}
 
 def play(name, volume):
     global current_music
-    if current_music == name:
-        return
     try:
+        if current_music == name:
+            pygame.mixer.music.set_volume(volume)
+            return
         pygame.mixer.music.load(f"res/music/{name}")
         pygame.mixer.music.set_volume(volume)
         pygame.mixer.music.play(loops=-1, fade_ms=1000)
@@ -30,7 +31,8 @@ def stop_music():
 
 def play_ambience(name, volume):
     global current_ambience, ambience_sounds
-    if current_ambience == name:
+    if current_ambience == name and name in ambience_sounds:
+        ambience_sounds[name].set_volume(volume)
         return
     # 停止当前正在播放的环境音效
     stop_ambience()

+ 360 - 0
client_local/skill/parametric2_skill.py

@@ -294,6 +294,22 @@ class CustomColourfulMessage(Skill):
             self.kill()
 
 
+# 发送消息({"context": "hello world", "colour": (r,g,b)})
+class CustomRawMessage(Skill):
+    def __init__(self, user, to, params, skill_instances):
+        super().__init__(user, to, skill_instances)
+        self.loaded = False
+        self.text = params.get("context", "")
+        self.colour = tuple(params.get("colour", [255, 255, 255]))
+
+    def update(self):
+        super().update()
+        if not self.loaded:
+            self.loaded = True
+            level.current_level.message_entry.new_message(sender=self.text, colour=self.colour)
+            self.kill()
+
+
 class CustomChatFlow(Skill):
     def __init__(self, user, to, params, skill_instances):
         super().__init__(user, to, skill_instances)
@@ -2089,6 +2105,83 @@ class CustomPointSpawnWithNameAndCharge(Skill):
 
 
 
+# 持续掉血远程血雾([目标,[范围],[伤害],[时刻],回复比例])
+# {"target": "player"/"monster", "range": [[1,1],[3,3]], "damages": [50,50,50,...], "hurt_times": [0,1000,2000,3000,...], "recover_rate": 100}
+class CustomVampireSmokeMagic(Skill):
+
+    def __init__(self, user, to, params, skill_instances):
+        super().__init__(user, to, skill_instances)
+        self.loaded = True
+        self.dizzy_explode = True  # 眩晕爆炸
+        self.dizzy_rooted_effect = None  # 眩晕定身特效
+        self.target = params.get("target", "player")
+        self.points = params.get("range", [[1]])
+        self.damages = params.get("damages", [400])
+        self.times = params.get("hurt_times", [0])
+        self.recover_rate = params.get("recover_rate", 1)
+        if self.target == "player":
+            self.centre = (level.current_level.me.x, level.current_level.me.y)
+        else:
+            self.centre = (self.user.x, self.user.y)
+        if len(self.points[0]) == 1:
+            self.grids = []
+            grid_radius = self.points[0][0]
+            for a in range(-grid_radius, grid_radius + 1):
+                for b in range(-grid_radius, grid_radius + 1):
+                    self.grids.append((a + self.centre[0], b + self.centre[1]))
+        elif len(self.points[0]) == 4:
+            self.grids = []
+            x1, y1, x2, y2 = self.points[0][0], self.points[0][1], self.points[0][2], self.points[0][3]
+            for a in range(x1, x2 + 1):
+                for b in range(y1, y2 + 1):
+                    self.grids.append((a + self.centre[0], b + self.centre[1]))
+        else:
+            self.grids = [(a + self.centre[0], b + self.centre[1]) for [a, b] in self.points]
+
+    def load(self):
+        super().load()
+
+    def update(self):
+        super().update()
+        if self.current_time - self.skill_time_init > 5000:
+            if self.dizzy_rooted_effect is not None:
+                self.dizzy_rooted_effect.state = EffectState.DEAD
+            for e in self.effect_instances:
+                e.state = EffectState.DEAD
+            self.kill()
+        if self.current_time - self.skill_time_init > 1000 and self.dizzy_explode:
+            # 眩晕爆炸
+            self.dizzy_explode = False
+            self.user.rooted -= 1
+            # 检查死亡
+            if self.user.remain_blood == 0:
+                for e in self.effect_instances:
+                    e.state = EffectState.DEAD
+                self.kill()
+                return
+            # 受伤
+            if (level.current_level.me.x, level.current_level.me.y) in self.grids:
+                CustomGotDevilPoisonEffect(self.to, [self.damages, self.times], self.to.skill_instances)
+                self.user.heal(self.damages[0] * self.recover_rate)
+                sound_player.play("cry")
+            for (x, y) in self.grids:
+                an_effect = EffectInstance("blood_dizzy_explode", self.user, False, level.current_level.effects_front)
+                an_effect.set_xy(x, y)
+                self.effect_instances.append(an_effect)
+        if self.loaded:
+            # npc施法阵与眩晕范围提示
+            self.loaded = False
+            self.user.rooted += 1
+            self.user.align_xy()
+            self.effect_instances.append(EffectInstance("launch2", self.user, False, self.user.effects_front))
+            # 范围提示
+            for (x, y) in self.grids:
+                an_effect = EffectInstance("blood_dizzy_hint", self.user, False, level.current_level.effects_behind)
+                an_effect.set_xy(x, y)
+                self.effect_instances.append(an_effect)
+            sound_player.play("launch")
+
+
 # 自定义旋转不引爆子弹
 # "params": {"number": 5, "damage": 600, "radius": 1.5, "times": 10000, "rps": 0.5, "effect": "fire_ball"}
 class CustomSurroundingFireBallStream(Skill):
@@ -2226,6 +2319,61 @@ class CustomTeleportEscape(Skill):
 
 
 
+# "params": {"avoid_range": 2}
+class CustomRandomInDistrictTeleportEscape(Skill):
+
+    def __init__(self, user, to, params, skill_instances):
+        self.avoid_range = max(0, int(params.get("avoid_range", 2)))
+        super().__init__(user, to, skill_instances)
+
+        cl = level.current_level
+        district = getattr(cl, "current_district", None)
+        if not getattr(cl, "in_district", False) or district is None:
+            return
+
+        square = district.get("square")
+        if not square or not self._point_in_square(self.to.x, self.to.y, square):
+            return
+
+        safe_grids = self.cal_to_available(cl, square)
+        if not safe_grids:
+            return
+        safe_point = random.choice(safe_grids)
+        self.effect_instances.append(
+            EffectInstance("blue_dots_reverse", self.user, False, self.user.effects_front)
+        )
+        self.user.set_xy(*safe_point)
+        cl.recal_npc_paths = True
+        self.effect_instances.append(
+            EffectInstance("blue_dots", self.user, False, self.user.effects_front)
+        )
+        sound_player.play("X08_01")
+
+    @staticmethod
+    def _point_in_square(x, y, square):
+        return square["x1"] <= x <= square["x2"] and square["y1"] <= y <= square["y2"]
+
+    def cal_to_available(self, cl, square):
+        safe_grids = []
+        x1 = max(0, int(square["x1"]))
+        y1 = max(0, int(square["y1"]))
+        x2 = min(cl.map_x - 1, int(square["x2"]))
+        y2 = min(cl.map_y - 1, int(square["y2"]))
+
+        for x in range(x1, x2 + 1):
+            for y in range(y1, y2 + 1):
+                if (x, y) == (self.user.x, self.user.y):
+                    continue
+                if abs(x - self.to.x) <= self.avoid_range and abs(y - self.to.y) <= self.avoid_range:
+                    continue
+                if (x, y) in cl.obstacle_instances:
+                    continue
+                if cl.get_bomb_instance(x, y):
+                    continue
+                safe_grids.append((x, y))
+        return safe_grids
+
+
 # 寻敌+地震
 # "params": {"cast_time": 2500, "land_quake_range": 2, "dizz_time": 5000, "do_earth_quake": true}
 class CustomMinionChaseWithCastTimeAndEarthQuake(Skill):
@@ -2663,6 +2811,218 @@ class EdenMouthSkill(Skill):
             self.kill()
 
 
+# "params": {"damages": [300, 200, 100], "times": [0, 600, 1200], "spawn": [], "recove_rate": 0}
+class VampireSword5x5(Skill):
+
+    def __init__(self, user, to, params, skill_instances):
+        super().__init__(user, to, skill_instances)
+        self.used = False
+        self.damages = params.get("damages", [300, 200, 100])
+        self.times = params.get("times", [0, 600, 1200])
+        self.spawn = params.get("spawn", [])
+        self.recover_rate = params.get("recove_rate", 0)
+
+    def update(self):
+        super().update()
+        if not self.used:
+            self.used = True
+            self.effect_instances.append(
+                EffectInstance("canyon_sword", self.user, True, self.user.effects_front)
+            )
+            for to in self.to:
+                if abs(to.x - self.user.x) < 3 and abs(to.y - self.user.y) < 3 and (abs(to.x - self.user.x) + abs(to.y - self.user.y) != 4):
+                    CustomGotDevilPoisonEffect(to, [self.damages, self.times], to.skill_instances)
+                    if self.recover_rate != 0:
+                        self.user.heal(self.damages[0] * self.recover_rate)
+                    EffectInstance("thunder_explode", to, True, to.effects_front)
+                    sound_player.play("cry")
+                    for npc in self.spawn:
+                        level.current_level.npcs.append(level.current_level.get_an_npc(npc, (to.x, to.y)))
+
+        if self.current_time - self.skill_time_init > 500:
+            for e in self.effect_instances:
+                e.state = EffectState.DEAD
+            self.kill()
+
+
+# "params": {"upgrade": ""}
+class ChessPawnMove(Skill):
+
+    def __init__(self, user, to, params, skill_instances):
+        super().__init__(user, to, skill_instances)
+        self.loaded = False
+        self.upgrade = params.get("upgrade", "")
+        self.upgrade_trigger = False
+        if self.user.x == self.to.x and self.user.y == self.to.y:
+            self.kill()
+        self.target_point = None
+        self.min_square_distance = 99999
+        for point in [(1, 1), (1, -1), (-1, 1), (-1, -1)]:
+            x, y = self.user.x + point[0], self.user.y + point[1]
+            distance2 = (x - self.to.x) ** 2 + (y - self.to.y) ** 2
+            if distance2 == 0:
+                self.target_point = (x, y)
+                self.min_square_distance = distance2
+                if self.upgrade != "":
+                    self.upgrade_trigger = True
+                break
+        if not self.upgrade_trigger:
+            for point in [(0, 1), (0, 2), (0, -1), (0, -2), (1, 0), (2, 0), (-1, 0), (-2, 0)]:
+                x, y = self.user.x + point[0], self.user.y + point[1]
+                if len(level.current_level.get_bomb_instance(x, y)) != 0:
+                    continue
+                if (x, y) in level.current_level.obstacle_instances.keys():
+                    continue
+                distance2 = (x - self.to.x) ** 2 + (y - self.to.y) ** 2
+                if distance2 < self.min_square_distance:
+                    self.target_point = (x, y)
+                    self.min_square_distance = distance2
+        if self.target_point is None:
+            self.kill()
+
+    def update(self):
+        super().update()
+        if not self.loaded:
+            self.loaded = True
+            if self.target_point is None:
+                self.kill()
+                return
+            an_effect = EffectInstance("scope", self.user, False, level.current_level.effects_front)
+            an_effect.set_xy(self.target_point[0], self.target_point[1])
+            self.effect_instances.append(an_effect)
+
+        if self.user.remain_blood <= 0:
+            self.kill()
+            return
+
+        if self.current_time - self.skill_time_init > 500 and self.loaded:
+            self.user.set_xy(self.target_point[0], self.target_point[1])
+            sound_player.play("explode2")
+            if self.upgrade_trigger:
+                if self.user.x == self.to.x and self.user.y == self.to.y:
+                    level.current_level.npcs.append(level.current_level.get_an_npc(self.upgrade, (self.user.x, self.user.y)))
+                    self.user.remain_blood = 0
+                    self.user.die_quietly()
+            self.kill()
+
+
+class ChessKnightMove(Skill):
+
+    def __init__(self, user, to, skill_instances):
+        super().__init__(user, to, skill_instances)
+        self.loaded = False
+        if abs(self.user.x - self.to.x) <= 1 and abs(self.user.y - self.to.y) <= 1:
+            self.kill()
+        self.target_point = None
+        self.min_square_distance = 99999
+        for point in [(1, 2), (1, -2), (-1, 2), (-1, -2), (2, 1), (-2, 1), (2, -1), (-2, -1)]:
+            x, y = self.user.x + point[0], self.user.y + point[1]
+            if len(level.current_level.get_bomb_instance(x, y)) != 0:
+                continue
+            if (x, y) in level.current_level.obstacle_instances.keys():
+                continue
+            distance2 = (x - self.to.x) ** 2 + (y - self.to.y) ** 2
+            if distance2 < self.min_square_distance:
+                self.target_point = (x, y)
+                self.min_square_distance = distance2
+        if self.target_point is None:
+            self.kill()
+
+    def update(self):
+        super().update()
+        if not self.loaded:
+            self.loaded = True
+            if self.target_point is None:
+                self.kill()
+                return
+            an_effect = EffectInstance("scope", self.user, False, level.current_level.effects_front)
+            an_effect.set_xy(self.target_point[0], self.target_point[1])
+            self.effect_instances.append(an_effect)
+
+        if self.user.remain_blood <= 0:
+            self.kill()
+            return
+
+        if self.current_time - self.skill_time_init > 500 and self.loaded:
+            self.user.set_xy(self.target_point[0], self.target_point[1])
+            sound_player.play("explode2")
+            self.kill()
+
+
+# "params": {"move_gap": 3000}
+class ChessBishopMoveMode(Skill):
+
+    def __init__(self, user, to, params, skill_instances):
+        super().__init__(user, to, skill_instances)
+        self.target_point = None
+        self.move_gap = max(params.get("move_gap", 3000), 500)
+        self.moving = False
+        self.start_moving = 0
+        self.last_move = 0
+        self.last_check = 0
+        self.effect = None
+
+    def update(self):
+        super().update()
+        if self.current_time - self.last_check >= 20:  # 20ms触发一次检测
+            self.last_check = self.current_time
+            if self.current_time - self.last_move >= self.move_gap and not self.moving:
+                dx, dy = level.current_level.me.x - self.user.x, level.current_level.me.y - self.user.y
+                if abs(dx) == abs(dy):
+                    self.last_move = self.current_time
+                    self.moving = True
+                    self.start_moving = self.current_time
+                    self.target_point = (level.current_level.me.x, level.current_level.me.y)
+                    self.effect = EffectInstance("scope", level.current_level.me, False, level.current_level.effects_front)
+                    self.effect_instances.append(self.effect)
+
+        if self.moving and self.current_time - self.start_moving > 500:  # 反应间隔
+            self.moving = False
+            self.user.set_xy(self.target_point[0], self.target_point[1])
+            self.effect.state = EffectState.DEAD
+            sound_player.play("explode2")
+
+        if self.user.remain_blood <= 0:
+            self.kill()
+
+
+# "params": {"move_gap": 3000}
+class ChessQueenMoveMode(Skill):
+
+    def __init__(self, user, to, params, skill_instances):
+        super().__init__(user, to, skill_instances)
+        self.target_point = None
+        self.move_gap = max(params.get("move_gap", 3000), 500)
+        self.moving = False
+        self.start_moving = 0
+        self.last_move = 0
+        self.last_check = 0
+        self.effect = None
+
+    def update(self):
+        super().update()
+        if self.current_time - self.last_check >= 20:  # 20ms触发一次检测
+            self.last_check = self.current_time
+            if self.current_time - self.last_move >= self.move_gap and not self.moving:
+                dx, dy = level.current_level.me.x - self.user.x, level.current_level.me.y - self.user.y
+                if abs(dx) == abs(dy) or dx == 0 or dy == 0:
+                    self.last_move = self.current_time
+                    self.moving = True
+                    self.start_moving = self.current_time
+                    self.target_point = (level.current_level.me.x, level.current_level.me.y)
+                    self.effect = EffectInstance("scope", level.current_level.me, False, level.current_level.effects_front)
+                    self.effect_instances.append(self.effect)
+
+        if self.moving and self.current_time - self.start_moving > 500:  # 反应间隔
+            self.moving = False
+            self.user.set_xy(self.target_point[0], self.target_point[1])
+            self.effect.state = EffectState.DEAD
+            sound_player.play("explode2")
+
+        if self.user.remain_blood <= 0:
+            self.kill()
+
+
 # "params": {"total_damage_bound": 15000}
 class CustomSetDamageUpperBound(Skill):
 

+ 6 - 3
client_local/skill/parametric_skill.py

@@ -2260,7 +2260,10 @@ class CustomBGM(Skill):
         self.params = params[0]
         self.loaded = False
         try:
-            music_loader.play(self.params, level.current_level.map_music_volume)
+            music_loader.play(
+                self.params,
+                level.current_level.map_music_volume * level.current_level.special_music_volume,
+            )
         except:
             pass
 
@@ -2883,8 +2886,8 @@ class CustomDevilSmokeMagic(Skill):
             # 受伤
             if (level.current_level.me.x, level.current_level.me.y) in self.grids:
                 CustomGotDevilPoisonEffect(self.to, [self.damages, self.times], self.to.skill_instances)
-                level.current_level.me.blood = max(1, level.current_level.me.blood-self.damages[0])
-                G.SPECIAL_MAX_HP -= min(max(0,level.current_level.me.blood-self.damages[0]), self.damages[0])
+                level.current_level.me.blood = max(1, level.current_level.me.blood-max(self.damages[0],0))
+                G.SPECIAL_MAX_HP -= min(max(0,level.current_level.me.blood-max(self.damages[0],0)), self.damages[0])
                 level.current_level.blood_bar.max_blood = min(max(0, level.current_level.me.blood), 999999)
                 sound_player.play("cry")
             for (x, y) in self.grids:

+ 8 - 0
client_local/skill/skill_map.py

@@ -295,6 +295,7 @@ skill_map = {
     "CustomMonsterTargetedSword5x5": {"skill": CustomMonsterTargetedSword5x5, "target": "npcs", "param": True, "effect": "self"},
     "CustomMessage": {"skill": CustomMessage, "target": "me", "param": True, "effect": "self"},
     "CustomColourfulMessage": {"skill": CustomColourfulMessage, "target": "me", "param": True, "effect": "self"},
+    "CustomRawMessage": {"skill": CustomRawMessage, "target": "me", "param": True, "effect": "self"},
     "CustomChatFlow": {"skill": CustomChatFlow, "target": "me", "param": True, "effect": "self"},
     "CustomWaterBubbleDistanceAttack": {"skill": CustomWaterBubbleDistanceAttack, "target": "me", "param": True, "effect": "self"},
     "CustomGroupSourceWaterFlow": {"skill": CustomGroupSourceWaterFlow, "target": "me", "param": True, "effect": "cl"},
@@ -317,12 +318,19 @@ skill_map = {
     "CustomLightShield": {"skill": CustomLightShield, "target": "me", "param": True, "effect": "cl"},
     "CustomMapEarthQuake": {"skill": CustomMapEarthQuake, "target": "me", "param": True, "effect": "cl"},
     "CustomPointSpawnWithNameAndCharge": {"skill": CustomPointSpawnWithNameAndCharge, "target": "me", "param": True, "effect": "cl"},
+    "CustomVampireSmokeMagic": {"skill": CustomVampireSmokeMagic, "target": "me", "param": True, "effect": "cl"},
     "CustomSurroundingFireBallStream": {"skill": CustomSurroundingFireBallStream, "target": "me", "param": True, "effect": "cl"},
     "CustomMinionChaseWithCastTimeAndEarthQuake": {"skill": CustomMinionChaseWithCastTimeAndEarthQuake, "target": "me", "param": True, "effect": "self"},
     "CustomDevilGunFireSkew5x5": {"skill": CustomDevilGunFireSkew5x5, "target": "me", "param": True, "effect": "self"},
     "CustomRemoteSword": {"skill": CustomRemoteSword, "target": "me", "param": True, "effect": "cl"},
     "CustomTeleportEscape": {"skill": CustomTeleportEscape, "target": "me", "param": True, "effect": "self"},
+    "CustomRandomInDistrictTeleportEscape": {"skill": CustomRandomInDistrictTeleportEscape, "target": "me", "param": True, "effect": "self"},
     "CustomDevilSmokeMagicOnPoisonTrap": {"skill": CustomDevilSmokeMagicOnPoisonTrap, "target": "me", "param": True, "effect": "cl"},
+    "VampireSword5x5": {"skill": VampireSword5x5, "target": "listed_me", "param": True, "effect": "self"},
+    "ChessPawnMove": {"skill": ChessPawnMove, "target": "me", "param": True, "effect": "self"},
+    "ChessKnightMove": {"skill": ChessKnightMove, "target": "me", "param": None, "effect": "self"},
+    "ChessBishopMoveMode": {"skill": ChessBishopMoveMode, "target": "me", "param": True, "effect": "self"},
+    "ChessQueenMoveMode": {"skill": ChessQueenMoveMode, "target": "me", "param": True, "effect": "self"},
     "EdenMouthSkill": {"skill": EdenMouthSkill, "target": "me", "param": True, "effect": "cl"},
     "CustomSetDamageUpperBound": {"skill": CustomSetDamageUpperBound, "target": "me", "param": True, "effect": "self"},
 

+ 1 - 1
client_local/ui/game/game_top.py

@@ -15,7 +15,7 @@ class GameTop(UIInstance):
     def __init__(self):
         super().__init__("game", "gameTop")
         self.font = pygame.font.Font(FONT_PATH, 16)
-        self.rend = self.font.render("v20260606", True, (0, 196, 255))
+        self.rend = self.font.render("v20260905", True, (0, 196, 255))
 
     def draw(self, screen: pygame.Surface):
         super().draw(screen)