Hi Alex!
I had some problems when I using ship.setSprite() in Hullmod. :P
I'm trying to use this code to change my ship's sprite and flux dissipation when all wings removed.
public void applyEffectsAfterShipCreation(ShipAPI ship, String id){
if(ship.getVariant().getWings().isEmpty()){
ship.setSprite("CTB_Ship", "ctb_mycarrier_redrunway");
ship.getMutableStats().getFluxDissipation().modifyMult(id, 2f);
}else{
ship.getMutableStats().getFluxDissipation().unmodify(id);
}
}
The ship is rendered in the wrong position when I removed all wings
(I must reselect the ship then it will set "redrunway" sprite and increase flux dissipation,but when I re-added any wing to the ship,sprite and flux dissipation will be reset immediately. )/(picture.a&picture.b)
There is another issue when ship join battle with no wings,I don't know how to describe it,as shown in picture.c
I uploaded a video to show these issues:
https://www.bilibili.com/video/BV1eK4y1f7BV
[attachment deleted by admin]