well that stats.getHullDamageTakenMult().modifyPercent code worked actually but there was a problem
It doesnt affect other ship classes it only affects choosen one;
Frigate takes %80 less damage from every class ship
If I mount that hullmod to Destroyer, it takes %15 less damage from every class ship because of this;
mag.put(HullSize.FRIGATE, 0f);
mag.put(HullSize.DESTROYER, -15f);
mag.put(HullSize.CRUISER, -65f);
mag.put(HullSize.CAPITAL_SHIP, -98f);
so it doesnt take %98 less damage from capital ships and %65 from cruisers
it should be like this;
Destroyers should take %20 less damage from Cruisers and %60 less damage from Capital Ships
Im still new to this coding