UMDLARS / one_night_in_sf

A story game demonstrating why physical security is important and complex!
2 stars 2 forks source link

Points go down when item is dropped #195

Closed Saturn-99 closed 10 months ago

Saturn-99 commented 10 months ago

reduce the player's points when they drop one of the 6 items needed for exfiltration (not other key items such as the plunger)

spacehobo commented 10 months ago

The task system is meant to be kind of a one-way function. Once you've achieved something, that's meant to indicate that you've change the world state to a point where the story can progress to a new stage in some way.

spacehobo commented 10 months ago

That said, the Achieved() function is sticks-and-stone simple:

[ Achieved num;
        if (task_done->num == 0) {
                task_done->num = 1;
                score = score + task_scores->num;
        }
];

It should be very little work to write the inverse of this. I'll get a POC branch up and tag this issue in a bit.

spacehobo commented 10 months ago

Okay, I'd like someone to test this to destruction with the USB key puzzle, as I don't see it in the test suite.