hxp
5 天以前 2b34924e06c0c36d77d9ccec4c4f10f1ebd16e84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package Skill.TurnBuffs.BuffAtk_1001
#
# @todo:buff³ÖÐø¹¥»÷
# @author hxp
# @date 2025-08-19
# @version 1.0
#
# ÏêϸÃèÊö: buff³ÖÐø¹¥»÷
#
#-------------------------------------------------------------------------------
#"""Version = 2025-08-19 16:00"""
#-------------------------------------------------------------------------------
 
import TurnSkill
import ChConfig
 
def CalcBuffValue(turnFight, attacker, defender, curSkill):
    #calcType = curSkill.GetCalcType()
    skillPer = curSkill.GetSkillPer()
    skillValue = curSkill.GetSkillValue()
    
    hurtValue, hurtTypes = TurnSkill.CalcHurtHP(turnFight, attacker, defender, curSkill, skillValue, skillPer, damageoftime=1)
    return [hurtValue % ChConfig.Def_PerPointValue, hurtValue / ChConfig.Def_PerPointValue, hurtTypes]
 
def DoBuffProcess(turnFight, batObj, curBuff):
    ## Ö´Ðе¥´ÎÂß¼­
    hurtValue = curBuff.GetValue1() + curBuff.GetValue2() * ChConfig.Def_PerPointValue # µ¥´ÎÉ˺¦
    hurtTypes = curBuff.GetValue3()
    TurnSkill.DoDOTAttack(turnFight, batObj, curBuff, hurtValue, hurtTypes)
    return