summaryrefslogtreecommitdiff
path: root/battle/skills.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-04 15:16:14 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-04 15:16:14 -0300
commit00b6b129f1848613404ead84ef2754fd1f614b8a (patch)
treeda68e7609921502bbf98fd48bc10afc90483438f /battle/skills.py
parent543f81b095b48a131dc1c2dd51a48d562feb3ad3 (diff)
downloadserver-00b6b129f1848613404ead84ef2754fd1f614b8a.tar.gz
server-00b6b129f1848613404ead84ef2754fd1f614b8a.tar.bz2
server-00b6b129f1848613404ead84ef2754fd1f614b8a.tar.xz
server-00b6b129f1848613404ead84ef2754fd1f614b8a.zip
Remove previously deprecated `dbgprint` function.
Diffstat (limited to 'battle/skills.py')
-rw-r--r--battle/skills.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/battle/skills.py b/battle/skills.py
index 56ee4ac..e88a2ff 100644
--- a/battle/skills.py
+++ b/battle/skills.py
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
########################################################################################
# Battle Module - Skills
-from utils import dbgprint, Battle
+from utils import stdout, Battle
from consts import (SK_SINGLE_DMG, SK_MULTI_DMG, SK_ATK_UP, SK_DEF_UP,
SK_SINGLE_HEAL, SK_MULTI_HEAL, SC_ATKUP, SC_DEFUP)
from battle.common import find_target, calc_dmg, attackall
@@ -39,7 +39,7 @@ def skill_core(token, mask, force, element):
if mask & SK_SINGLE_DMG:
# Single Damage skill: 1 strength = 1 damage
target_id=find_target(token, "enemy")
- dbgprint("Enemy selected: %d" % target_id)
+ stdout("Enemy selected: %d" % target_id)
target=Battle[token]["enemy"][target_id]
target["hp"]-=calc_dmg(token, dummy, target, dummy["atk"])