|
@@ -3,32 +3,32 @@ import random
|
|
|
import os
|
|
import os
|
|
|
import pygame
|
|
import pygame
|
|
|
|
|
|
|
|
-from game.algo import aStar
|
|
|
|
|
-from game.const import color as C
|
|
|
|
|
-from game.const import game as G
|
|
|
|
|
-from game.frame import bomb, item
|
|
|
|
|
-from game.level import level
|
|
|
|
|
-from game.skill.jidi_skill import FengBaoIceSlow1x1, FengBaoSword100
|
|
|
|
|
-from game.skill.mizhidi_skill import MiZhiDiSword500, MiZhiDiSword800, MonsterReverse, MiZhiDiThunder1x1HP800
|
|
|
|
|
-from game.skill.npc_skill import Skill21065, Skill21069, Skill21044, Skill21049, Skill21054, Skill21087, Skill21082, \
|
|
|
|
|
|
|
+from client_local.algo import aStar
|
|
|
|
|
+from client_local.const import color as C
|
|
|
|
|
+from client_local.const import game as G
|
|
|
|
|
+from client_local.frame import bomb, item
|
|
|
|
|
+from client_local.level import level
|
|
|
|
|
+from client_local.skill.jidi_skill import FengBaoIceSlow1x1, FengBaoSword100
|
|
|
|
|
+from client_local.skill.mizhidi_skill import MiZhiDiSword500, MiZhiDiSword800, MonsterReverse, MiZhiDiThunder1x1HP800
|
|
|
|
|
+from client_local.skill.npc_skill import Skill21065, Skill21069, Skill21044, Skill21049, Skill21054, Skill21087, Skill21082, \
|
|
|
Skill21000, Skill21002, Skill21003, Skill21004, Skill21006, Skill21007, Skill21066, Skill21067, Skill21014, \
|
|
Skill21000, Skill21002, Skill21003, Skill21004, Skill21006, Skill21007, Skill21066, Skill21067, Skill21014, \
|
|
|
Skill21025, \
|
|
Skill21025, \
|
|
|
Skill21027, Skill21008, Skill21011, Skill21012, Skill21017, Skill21018, Skill21005, Skill21019, Skill21020, \
|
|
Skill21027, Skill21008, Skill21011, Skill21012, Skill21017, Skill21018, Skill21005, Skill21019, Skill21020, \
|
|
|
Skill21022, Skill21072, \
|
|
Skill21022, Skill21072, \
|
|
|
Skill21073, Skill21074
|
|
Skill21073, Skill21074
|
|
|
-from game.skill.new_skill import RevengeDash, TemporaryHidden, PutBomb, BombEscape, ContactStun, LandQuake, \
|
|
|
|
|
|
|
+from client_local.skill.new_skill import RevengeDash, TemporaryHidden, PutBomb, BombEscape, ContactStun, LandQuake, \
|
|
|
PermanentlyHidden, ColorfulSmoke, \
|
|
PermanentlyHidden, ColorfulSmoke, \
|
|
|
DistantIce5x5, SlowSword, DirtyPath, NearSlow, NearAccelerate, BombJail, RevengeDash3s, BombThrowGold, \
|
|
DistantIce5x5, SlowSword, DirtyPath, NearSlow, NearAccelerate, BombJail, RevengeDash3s, BombThrowGold, \
|
|
|
BombThrowBlack, IceFireSwitch, BombThrowRainRandom, BombThrowRainPlayer, LoomingFire, SpawnMinions, \
|
|
BombThrowBlack, IceFireSwitch, BombThrowRainRandom, BombThrowRainPlayer, LoomingFire, SpawnMinions, \
|
|
|
SlowSmoke7x7, MinionChase, BloodAccelerate
|
|
SlowSmoke7x7, MinionChase, BloodAccelerate
|
|
|
-from game.skill.skill import Protect005s, ThunderAttack, HeiLongBlackWizardPutFireTrap, \
|
|
|
|
|
|
|
+from client_local.skill.skill import Protect005s, ThunderAttack, HeiLongBlackWizardPutFireTrap, \
|
|
|
HeiLongBlackWizardPutIceTrap, HeiLongAbyssDragonSword, HeiLongAbyssDragonDistantFire, HeiLongAbyssDragonCharge, \
|
|
HeiLongBlackWizardPutIceTrap, HeiLongAbyssDragonSword, HeiLongAbyssDragonDistantFire, HeiLongAbyssDragonCharge, \
|
|
|
HeiLongDistantFire5x5, HeiLongDistantFire3x3, HeiLongDizzy9x9, \
|
|
HeiLongDistantFire5x5, HeiLongDistantFire3x3, HeiLongDizzy9x9, \
|
|
|
HeiLongThunder3x3HP800, HeiLongRedWizardPutFireTrap, HeiLongReverse, BloodElixirMiddle, \
|
|
HeiLongThunder3x3HP800, HeiLongRedWizardPutFireTrap, HeiLongReverse, BloodElixirMiddle, \
|
|
|
HeiLongFloatingFire, HeiLongHellDragonDistantFire, HeiLongHellDragonCharge, HeiLongHellDragonScope, \
|
|
HeiLongFloatingFire, HeiLongHellDragonDistantFire, HeiLongHellDragonCharge, HeiLongHellDragonScope, \
|
|
|
HeiLongAbyssDragonRecovery, HeiLongPutFireTrap, HeiLongSkeletonKnightPutThunderTrap, HeiLongSkeletonKnightEnhance, \
|
|
HeiLongAbyssDragonRecovery, HeiLongPutFireTrap, HeiLongSkeletonKnightPutThunderTrap, HeiLongSkeletonKnightEnhance, \
|
|
|
HeiLongPutIceTrap, Protect3s
|
|
HeiLongPutIceTrap, Protect3s
|
|
|
-from game.skill.cool_skill import SuperLandQuake, DistantIce3x3, NearStop, PreloadPoison3x3, Fire400, DevilPoisonx3, \
|
|
|
|
|
|
|
+from client_local.skill.cool_skill import SuperLandQuake, DistantIce3x3, NearStop, PreloadPoison3x3, Fire400, DevilPoisonx3, \
|
|
|
GhostChase, \
|
|
GhostChase, \
|
|
|
SpeedUp, SpeedDown, JumpForward, RandomSpawn1, PointSpawn1, PointSpawn2, AllDizzy7x7, AllDizzy9x9, AirFlow500, Smoke1x7, \
|
|
SpeedUp, SpeedDown, JumpForward, RandomSpawn1, PointSpawn1, PointSpawn2, AllDizzy7x7, AllDizzy9x9, AirFlow500, Smoke1x7, \
|
|
|
Smoke1x7Reverse, Skill21019Test, \
|
|
Smoke1x7Reverse, Skill21019Test, \
|
|
@@ -40,19 +40,19 @@ from game.skill.cool_skill import SuperLandQuake, DistantIce3x3, NearStop, Prelo
|
|
|
PutSmallBomb_P1_Dn200, KillAll, FakeKillAll, KillSelf, Self5x5Explode600, VeryNearStop, MainGunFire3x3, MainGunFire3x3Charge15s, ChargeAssistance, ChargeAssistance3s, \
|
|
PutSmallBomb_P1_Dn200, KillAll, FakeKillAll, KillSelf, Self5x5Explode600, VeryNearStop, MainGunFire3x3, MainGunFire3x3Charge15s, ChargeAssistance, ChargeAssistance3s, \
|
|
|
SpreadingThunder600, FastHeal5000, Smoke1x7Pro, Smoke1x7ReversePro, DirectWarningOrder
|
|
SpreadingThunder600, FastHeal5000, Smoke1x7Pro, Smoke1x7ReversePro, DirectWarningOrder
|
|
|
|
|
|
|
|
-from game.skill.parametric_skill import SpawnMinionsWithName, PointSpawnWithName, RemakeWithNameAfterCharge, PointSpawnWithNameAndCharge, \
|
|
|
|
|
|
|
+from client_local.skill.parametric_skill import SpawnMinionsWithName, PointSpawnWithName, RemakeWithNameAfterCharge, PointSpawnWithNameAndCharge, \
|
|
|
CustomSword5x5, CustomPutBomb, CustomMinionChase, CustomLocationSpawnMinionsWithName, CustomMonsterCombo, CustomBombShield, CustomGunFireSkew3x3, \
|
|
CustomSword5x5, CustomPutBomb, CustomMinionChase, CustomLocationSpawnMinionsWithName, CustomMonsterCombo, CustomBombShield, CustomGunFireSkew3x3, \
|
|
|
CustomLaserFireBall, CustomShieldBless, CustomBombJail, CustomDirectSlow, EscapeFromBomb, EscapeFromBombOld, SafelyEscapeFromBomb, EscapeRandom, CustomCleverSpawnMinionsWithName, \
|
|
CustomLaserFireBall, CustomShieldBless, CustomBombJail, CustomDirectSlow, EscapeFromBomb, EscapeFromBombOld, SafelyEscapeFromBomb, EscapeRandom, CustomCleverSpawnMinionsWithName, \
|
|
|
CustomBombThrowRainRandom, CustomSummonObstacle, CustomDirectionLaserFireBall, CustomGeneralDistanceAttack, ShareDamage, CustomGeneralTrap, CustomMovePoint, CustomBGM, \
|
|
CustomBombThrowRainRandom, CustomSummonObstacle, CustomDirectionLaserFireBall, CustomGeneralDistanceAttack, ShareDamage, CustomGeneralTrap, CustomMovePoint, CustomBGM, \
|
|
|
CustomLevel, CustomWaterFlow, CustomFourSidedWaterFlow, CustomCrabWalk, CustomRangeBuff, CustomSourceWaterFlow, CustomRecovery, CustomRandomGunFireSkew1x1, CustomDevilSmokeMagic, \
|
|
CustomLevel, CustomWaterFlow, CustomFourSidedWaterFlow, CustomCrabWalk, CustomRangeBuff, CustomSourceWaterFlow, CustomRecovery, CustomRandomGunFireSkew1x1, CustomDevilSmokeMagic, \
|
|
|
- AbsorbAlly, CustomDevilAirKnife, CustomDamageFrameSkill, CustomHPDropSkill, CustomInDistanceBasedSkill, CustomOutDistanceBasedSkill, CustomDelayedSkill, CustomModeSwitch, DirectPointSpawn, \
|
|
|
|
|
- KillAllExcept
|
|
|
|
|
|
|
+ AbsorbAlly, CustomDevilAirKnife, CustomDamageFrameSkill, CustomInDistanceBasedSkill, CustomOutDistanceBasedSkill, CustomDelayedSkill, CustomModeSwitch, DirectPointSpawn, \
|
|
|
|
|
+ KillAllExcept, CustomHPDropSkill
|
|
|
|
|
|
|
|
-from game.skill.special_magic_skill import Canyon_RevengeDash, Canyon_Skill21044, Canyon_Skill21065, Canyon_HeiLongAbyssDragonSword, Canyon_DistantIce5x5, \
|
|
|
|
|
|
|
+from client_local.skill.special_magic_skill import Canyon_RevengeDash, Canyon_Skill21044, Canyon_Skill21065, Canyon_HeiLongAbyssDragonSword, Canyon_DistantIce5x5, \
|
|
|
Canyon_HeiLongBlackWizardPutIceTrap, Canyon_HeiLongPutIceTrap, Canyon_Skill21000, Canyon_Skill21017, Tundra_HeiLongDistantFire5x5, Tundra_Skill21011, Tundra_Skill21002, \
|
|
Canyon_HeiLongBlackWizardPutIceTrap, Canyon_HeiLongPutIceTrap, Canyon_Skill21000, Canyon_Skill21017, Tundra_HeiLongDistantFire5x5, Tundra_Skill21011, Tundra_Skill21002, \
|
|
|
Tundra_HeiLongFloatingFire, Tundra_Skill21018, Tundra_MinionChase, Tundra_Skill21002Promax
|
|
Tundra_HeiLongFloatingFire, Tundra_Skill21018, Tundra_MinionChase, Tundra_Skill21002Promax
|
|
|
|
|
|
|
|
-from game.skill.machine_skill import EnergyEgg, BigEnergyEgg, EnergyShield, TimeStop, BigTimeStop, TimeExplode, \
|
|
|
|
|
|
|
+from client_local.skill.machine_skill import EnergyEgg, BigEnergyEgg, EnergyShield, TimeStop, BigTimeStop, TimeExplode, \
|
|
|
PoisonFog1000x5, ReversePoisonFogExplode, \
|
|
PoisonFog1000x5, ReversePoisonFogExplode, \
|
|
|
InvisibleSlowTrap, SelfNuclearExplode, RobotScope, SelfRepair70, Skill21017New, FreedomBless, BigFreedomBless, \
|
|
InvisibleSlowTrap, SelfNuclearExplode, RobotScope, SelfRepair70, Skill21017New, FreedomBless, BigFreedomBless, \
|
|
|
Self5x5Explode, SelfRepair100, \
|
|
Self5x5Explode, SelfRepair100, \
|
|
@@ -62,24 +62,24 @@ from game.skill.machine_skill import EnergyEgg, BigEnergyEgg, EnergyShield, Time
|
|
|
HenshinThunderSkeleton3s, HenshinIceSkeleton5s, HenshinFireSkeleton5s, HenshinThunderSkeleton5s, \
|
|
HenshinThunderSkeleton3s, HenshinIceSkeleton5s, HenshinFireSkeleton5s, HenshinThunderSkeleton5s, \
|
|
|
HenshinIceSkeleton9s, HenshinFireSkeleton9s, HenshinThunderSkeleton9s
|
|
HenshinIceSkeleton9s, HenshinFireSkeleton9s, HenshinThunderSkeleton9s
|
|
|
|
|
|
|
|
-from game.skill.cool_machine_skill import ChasingThunder700, ColumnThunder700, RowThunder700, SpeedZero, Energy_Charge_1, Energy_Discharge_1, SlowFireBall, RandomSlowFireBall, \
|
|
|
|
|
|
|
+from client_local.skill.cool_machine_skill import ChasingThunder700, ColumnThunder700, RowThunder700, SpeedZero, Energy_Charge_1, Energy_Discharge_1, SlowFireBall, RandomSlowFireBall, \
|
|
|
TimeExplodePlus, EnergyEgg300, Energy5x5Charge1, Energy5x5Charge5, Energy7x7Charge5, PowerOFF, DeadExplode, LaserSword5x5, PowerShield2, RemoveProtect, \
|
|
TimeExplodePlus, EnergyEgg300, Energy5x5Charge1, Energy5x5Charge5, Energy7x7Charge5, PowerOFF, DeadExplode, LaserSword5x5, PowerShield2, RemoveProtect, \
|
|
|
ShortRush, Energy5x5Absorb3, Energy_Clear, RevengeSmoke7x7D600, RevengePoison1x1, MinionChase2sLater, DebuffPoisonBlood3x3, PoisonTrap1x1DHPx5x5, LifeLongReverse, \
|
|
ShortRush, Energy5x5Absorb3, Energy_Clear, RevengeSmoke7x7D600, RevengePoison1x1, MinionChase2sLater, DebuffPoisonBlood3x3, PoisonTrap1x1DHPx5x5, LifeLongReverse, \
|
|
|
SlowRecoveryWeak, ClearReverse, RunBack, RunBackShort, RunPlayerBack, PermanentlyHiddenWithPower, KillPlayer, KillContact, SwapPosition, VeryShortRush
|
|
SlowRecoveryWeak, ClearReverse, RunBack, RunBackShort, RunPlayerBack, PermanentlyHiddenWithPower, KillPlayer, KillContact, SwapPosition, VeryShortRush
|
|
|
|
|
|
|
|
-from game.skill.parametric2_skill import CustomMoveDirection, CustomOnGridBasedSkill, CustomChaseMonster, CustomMonsterTargetedSword5x5, CustomMessage, CustomWaterBubbleDistanceAttack, \
|
|
|
|
|
|
|
+from client_local.skill.parametric2_skill import CustomMoveDirection, CustomOnGridBasedSkill, CustomChaseMonster, CustomMonsterTargetedSword5x5, CustomMessage, CustomWaterBubbleDistanceAttack, \
|
|
|
CustomGroupSourceWaterFlow, CustomGroupDirectionLaserFireBall, CustomSelfDefenseEnhance, CustomWaterDamageHeal, CustomVortex, CustomBubbleContact, CustomSelfDamage, \
|
|
CustomGroupSourceWaterFlow, CustomGroupDirectionLaserFireBall, CustomSelfDefenseEnhance, CustomWaterDamageHeal, CustomVortex, CustomBubbleContact, CustomSelfDamage, \
|
|
|
CustomTrackingDirectionLaserFireBallEffect, CustomTrackingDirectionLaserFireBallArithmeticStream, CustomFixedDirectionLaserFireBallArithmeticStream, CustomAssassinHide, CustomHydroGunFireSkew5x5
|
|
CustomTrackingDirectionLaserFireBallEffect, CustomTrackingDirectionLaserFireBallArithmeticStream, CustomFixedDirectionLaserFireBallArithmeticStream, CustomAssassinHide, CustomHydroGunFireSkew5x5
|
|
|
|
|
|
|
|
-from game.ui.game.blood_bar import BossBloodBar, BossHead
|
|
|
|
|
-from game.sound import sound_player
|
|
|
|
|
-from game.sprite.bomb_instance import BombInstance
|
|
|
|
|
-from game.sprite.ghost import Ghost
|
|
|
|
|
-from game.sprite.hero import Hero
|
|
|
|
|
-from game.sprite.item_instance import ItemInstance
|
|
|
|
|
-from game.sprite.player import Player, PlayerState
|
|
|
|
|
-from game.sprite.throwable import Throwable
|
|
|
|
|
-from game.file_loader.fileLoader import load_json, load_png
|
|
|
|
|
|
|
+from client_local.ui.game.blood_bar import BossBloodBar, BossHead
|
|
|
|
|
+from client_local.sound import sound_player
|
|
|
|
|
+from client_local.sprite.bomb_instance import BombInstance
|
|
|
|
|
+from client_local.sprite.ghost import Ghost
|
|
|
|
|
+from client_local.sprite.hero import Hero
|
|
|
|
|
+from client_local.sprite.item_instance import ItemInstance
|
|
|
|
|
+from client_local.sprite.player import Player, PlayerState
|
|
|
|
|
+from client_local.sprite.throwable import Throwable
|
|
|
|
|
+from client_local.file_loader.fileLoader import load_json, load_png
|
|
|
import logging
|
|
import logging
|
|
|
from datetime import datetime
|
|
from datetime import datetime
|
|
|
|
|
|
|
@@ -168,7 +168,7 @@ class Npc(Player, Throwable):
|
|
|
self.chase_path = None # Npc追踪路径
|
|
self.chase_path = None # Npc追踪路径
|
|
|
self.npc_skill_time = pygame.time.get_ticks() # npc施放技能时的时刻 设为成员变量是为了统一多个技能的时间
|
|
self.npc_skill_time = pygame.time.get_ticks() # npc施放技能时的时刻 设为成员变量是为了统一多个技能的时间
|
|
|
self.is_skill_init = False
|
|
self.is_skill_init = False
|
|
|
- self.chs_name_bg = load_png(G.GAME_PATH + "\\" + "res/img/ui/game/misc171.png") # Npc姓名牌背景
|
|
|
|
|
|
|
+ self.chs_name_bg = load_png(r"res/img/ui/game/misc171.png") # Npc姓名牌背景
|
|
|
# self.chs_name_bg = pygame.image.load("res/img/ui/game/misc171.png").convert_alpha() # Npc姓名牌背景
|
|
# self.chs_name_bg = pygame.image.load("res/img/ui/game/misc171.png").convert_alpha() # Npc姓名牌背景
|
|
|
self.blood_bar = None
|
|
self.blood_bar = None
|
|
|
self.blood_bar_pos = 0
|
|
self.blood_bar_pos = 0
|