|
|
@@ -279,7 +279,7 @@ export class BulletCount extends Component {
|
|
|
* @param originalConfig 原始武器配置
|
|
|
* @returns 应用技能后的武器配置
|
|
|
*/
|
|
|
- private static applyMultiShotSkill(originalConfig: any): any {
|
|
|
+ public static applyMultiShotSkill(originalConfig: any): any {
|
|
|
// 获取SkillManager实例
|
|
|
const skillManager = SkillManager.getInstance();
|
|
|
if (!skillManager) {
|
|
|
@@ -287,15 +287,16 @@ export class BulletCount extends Component {
|
|
|
}
|
|
|
// 获取多重射击技能等级
|
|
|
const multiShotSkillLevel = skillManager.getSkillLevel('multi_shots');
|
|
|
+ console.log("技能等级",multiShotSkillLevel);
|
|
|
if (multiShotSkillLevel <= 0) {
|
|
|
return originalConfig; // 技能等级为0,返回原配置
|
|
|
}
|
|
|
- // 检查是否为单发武器(amount = 1 且 type = 'single')
|
|
|
+ // // 检查是否为单发武器(amount = 1 且 type = 'single')
|
|
|
const bulletCountConfig = originalConfig.bulletConfig.count;
|
|
|
- const isSingleShotWeapon = bulletCountConfig.type === 'single' && bulletCountConfig.amount === 1;
|
|
|
- if (!isSingleShotWeapon) {
|
|
|
- return originalConfig; // 多发武器不受影响,返回原配置
|
|
|
- }
|
|
|
+ // const isSingleShotWeapon = bulletCountConfig.type === 'single' && bulletCountConfig.amount === 1;
|
|
|
+ // if (!isSingleShotWeapon) {
|
|
|
+ // return originalConfig; // 多发武器不受影响,返回原配置
|
|
|
+ // }
|
|
|
// 计算多重射击几率
|
|
|
const baseMultiShotChance = 0; // 基础几率为0
|
|
|
const multiShotChance = SkillManager.calculateMultiShotChance(baseMultiShotChance, multiShotSkillLevel);
|