delight-im/Ballmanager — pull request #117 by cosme12 (2014-07-10 20:25:45+00:00)
Title: Achievements

Well, here is the achievements idea finished. It works like this:

1) Manager-Prufung has been limited to 32 tasks (like we already have). Now we can add more tasks without being displayed in this list.

2) Achievement works the same way as the tutorial (exactly the same way). ```setTaskDone()``` to complete the task. Achievements go from id>30.

3) Achievements are displayed on players profile. They are public, so anybody can see them. Under the medals there is a link to the achievements list (```achievements.php```).

4) ```achievements.php``` is a copy of ```Manager-Prufung``` but only medals are displayed. (from id>30). Here you can find a list of the medals you "must" get.

5) Achievements task shouldnt explain how to get the reward but its name. For example:
- id= 31
- shortName= money_record_1
- task= We are rich!
(the icon is a $ medal)
This way you we set the ```setTaskDone()``` when the players club gets more than $300m. Hover the mouse over the medal will also display the "task" (We are rich!).

6) Each .png file use the "id task" as its name. Example: 31.png

7) Each task should have its own level. Easy, Intermediate and Hard. Example:
- We are rich! requieres 300m
- We have even more money! requires 600m

Note: We are rich! task is a just an ugly example :P

Well I think thats all. You should ask players now for ideas (force them to do something too! :D
Some pictures over here (note: I had to make a new medal since the one we had before was really similar to one in another game):

![31](https://cloud.githubusercontent.com/assets/6611118/3544607/b5e7bed8-086e-11e4-92fe-6c352f1b2e1d.png) 31.png

![new-2](https://cloud.githubusercontent.com/assets/6611118/3544647/f469057c-086e-11e4-9777-c461a457afad.jpg)

DONT MISS THIS TEXT :P
Here is a bad example of task name. It will reveal how to exactly complete the task removing all fun. This picture belongs to the new ```achievements.php``` file. You will have to add some explanation about "achievements" in the top text and table size fix. While writting this I realize it starts couting from [3].

I tried to use as less new code as I could, just to avoid adding bugs. I tested most of it, but since I changed a few things while writting maybe I broke something.

![new-3](https://cloud.githubusercontent.com/assets/6611118/3544659/1434573a-086f-11e4-8a94-1652fd48c197.jpg)