Tough Little Ship achievement never unlocks

Discuss problems related to FTL here. If you are having a problem or experiencing a bug PLEASE READ THE "MUST READ" POST.
mcandre
Posts: 7
Joined: Mon Mar 10, 2014 10:06 pm

Tough Little Ship achievement never unlocks

Postby mcandre » Tue Apr 14, 2015 1:36 am

I performed the duties of the Tough Little Ship challenge for the Kestrel, but the achievement never unlocks.

* FTL Advanced Edition
* Mac OS X Yosemite
User avatar
stylesrj
Posts: 3644
Joined: Tue Jul 08, 2014 7:54 am

Re: Tough Little Ship achievement never unlocks

Postby stylesrj » Tue Apr 14, 2015 2:49 am

What exactly did you do to go for the achievement?

Did you repair your ship all at once from 1HP or was it 1HP at a time? Were you at 2HP on a Store and decided to firebomb a room to bring yourself down to 1HP before repairing?

Because there might be a problem if you did that. You're meant to hit "Repair All"
mcandre
Posts: 7
Joined: Mon Mar 10, 2014 10:06 pm

Re: Tough Little Ship achievement never unlocks

Postby mcandre » Tue Apr 14, 2015 8:46 pm

I went carefully down to 1 HP in the first sector, then navigated to the nearest store and used Repair All.

I'd appreciate it if the logic for detecting this achievement were improved to something like:

Code: Select all

add_hook :lose_health do
  if Ship.health == 1
    ToughLittleShip.went_down_to_1hp = true
  end
end

add_hook :gain_health do
  if Ship.health == Ship.max_health && ToughLittleShip.went_down_to_1hp
    ToughLittleShip.award
  end
end


That happens to be Ruby pseudocode, but something like that would be nice.
User avatar
stylesrj
Posts: 3644
Joined: Tue Jul 08, 2014 7:54 am

Re: Tough Little Ship achievement never unlocks

Postby stylesrj » Tue Apr 14, 2015 11:24 pm

mcandre wrote:I went carefully down to 1 HP in the first sector, then navigated to the nearest store and used Repair All.


Was the store a fresh one or a used store? I think it depends on that as well.

Although I'm not a programmer. I managed to get Tough Little Ship by somewhat luck (2 HP left, firebombed a room, then went to the store)
mcandre
Posts: 7
Joined: Mon Mar 10, 2014 10:06 pm

Re: Tough Little Ship achievement never unlocks

Postby mcandre » Wed Apr 15, 2015 9:15 pm

A fresh store; one that I had not visited before.

Lol, nice use of firebomb.
User avatar
stylesrj
Posts: 3644
Joined: Tue Jul 08, 2014 7:54 am

Re: Tough Little Ship achievement never unlocks

Postby stylesrj » Wed Apr 15, 2015 10:15 pm

mcandre wrote:A fresh store; one that I had not visited before.

Lol, nice use of firebomb.


I dunno what happened then. Are you sure the ship was at 1HP?

As for the firebomb, it wasn't my smartest decision to drop it on the Sensor Room (it was the only one there with one bar of health) but at least it wasn't Doors.