|
本帖最后由 一碗汤 于 2022-1-4 00:54 编辑
下划线代码加成了炮塔转速与光束炮塔转速,光束炮塔会吃两次加成吗?
麻烦大佬们看看,谢谢!
package data.hullmods;
import com.fs.starfarer.api.combat.BaseHullMod;
import com.fs.starfarer.api.combat.MutableShipStatsAPI;
import com.fs.starfarer.api.combat.ShipAPI.HullSize;
public class AdvancedTurretGyros extends BaseHullMod {
public static final float TURRET_SPEED_BONUS = 75f;
public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
stats.getWeaponTurnRateBonus().modifyPercent(id, TURRET_SPEED_BONUS);
stats.getBeamWeaponTurnRateBonus().modifyPercent(id, TURRET_SPEED_BONUS);
}
public String getDescriptionParam(int index, HullSize hullSize) {
if (index == 0) return "" + (int) TURRET_SPEED_BONUS + "%";
return null;
}
}
|
|