#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package Skill.PassiveTrigger.PassiveEff_6030
|
#
|
# @todo:µôѪÉÏÏÞ±£»¤
|
# @author hxp
|
# @date 2025-12-22
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: µôѪÉÏÏÞ±£»¤
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2025-12-22 14:00"""
|
#-------------------------------------------------------------------------------
|
|
def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, connSkill, **skillkwargs):
|
maxPer = curEffect.GetEffectValue(0) # ×î´ó²»³¬¹ý¼ÆË㷽ʽµÄÍò·Ö±È
|
calcType = curEffect.GetEffectValue(1) # ¼ÆË㷽ʽ 1-×î´óѪÁ¿
|
calcValue = attacker.GetMaxHP() # ĬÈϰ´×î´óѪÁ¿
|
|
# ÆäËû·½Ê½¿ÉÖ§³Ö
|
if calcType == 1:
|
pass
|
|
return int(calcValue * maxPer / 10000.0)
|