增加修改reload时间的buff

main
刘涛 2023-11-07 13:49:30 +08:00
parent 0536c66ac3
commit 63f2e7ea95
4 changed files with 10 additions and 0 deletions

View File

@ -93,6 +93,10 @@ namespace Gameplay.Buff
case EPropType.SkillReleaseDistancePercent:
owner.fightData.skillReleaseDistanceScale += changeValue;
break;
case EPropType.ReloadTimePercent:
owner.fightData.reloadTime = owner.fightData.baseReloadTime * (1 + changeValue);
_UpdateViewReloadCd();
break;
default:
DebugUtil.LogError("暂未处理的属性类型:{0}", propType);
break;

View File

@ -103,6 +103,7 @@ namespace Gameplay.Character
owner.fightData.firstShootTime = configData.firstShootTime;
owner.fightData.moraleAttack = configData.moraleAttack;
owner.fightData.reloadTime = configData.reloadTime;
owner.fightData.baseReloadTime = configData.reloadTime;
owner.fightData.findEnemyRange = configData.findEnemyRange;
owner.fightData.autoRecoverHPDealy = configData.hpRecoverDelay;
owner.fightData.autoRecoverHPValueFixed = configData.hpRecoverFix;

View File

@ -125,6 +125,10 @@ namespace Gameplay.Common
/// 装弹时间
/// </summary>
public ObscuredFloat reloadTime;
/// <summary>
/// 装弹时间-基础值
/// </summary>
public ObscuredFloat baseReloadTime;
/// <summary>
/// 自动恢复护盾延迟时间

View File

@ -35,6 +35,7 @@ namespace Gameplay.Vehicle.Data
owner.fightData.firstShootTime = configData.firstShootTime;
owner.fightData.moraleAttack = configData.moraleAttack;
owner.fightData.reloadTime = configData.reloadTime;
owner.fightData.baseReloadTime = configData.reloadTime;
owner.commonData.crossLevel = configData.crossLevel;
owner.commonData.standLevel = configData.standLevel;