AP calculation for sex (dis)advantages

Issue #149 resolved
Nando Neck created an issue

Wege der Vereinigung

Sex-Vorteile & Sex-Nachteile get additional (-)20 AP to cover them.

Bei der Heldenerschaffung kannst du neben den üblichen 80 Abenteuerpunkten, die du für Vor- und Nachteile deines Helden ausgeben darfst, noch weitere 20 AP für die hier vorgestellten Sex-Vor- und Nachteile nutzen. Möchten du mehr als 20 AP dafür ausgeben, musst du diese von den üblichen 80-Punkte-Limits bezahlen.

Currently I added the attribute, but this can also be done by checking if the advantage comes from the rulebook wegedervereinigung

"sex": true

Comments (6)

  1. Bernhard Jung repo owner

    Commit c405055 should allow to define a status text in a JSON file that keeps track on how many AP have been invested into/gained from a certain dis-/advantage group.

    There are three predefined hardcoded status text that before were automatically displayed. These status texts are

    1. The text on the spells form that shows during creation how many spells have been activated.
    2. The text on the chants form that shows how many chants have been activated.
    3. The text on the disadvantages form that show how many AP have been invested into/gained from advantages and disadvantages.

    These texts are hard coded and it is not possible to do any configuration, but the texts do not show up automatically. All status texts are now loaded from JSON files. I added a statustext.json to the German and English rules that simply activates these texts, so they should appear just like before.

    For the case with the sex advantages I added a forth type of status text. It allows some configuration. How the JSON has to look for these status texts is described in the following wiki article: element Type statustext

    For the sex dis-/advantantages a statustext.json has to be added to Wege der Vereinigung and two status texts of type disadvantagesgrouprestap have to be configured. How to do this is described at the bottom of the wiki page under "Rule element group rest AP".

  2. Nando Neck reporter
    • changed status to open

    As said before we need a way to add 20 Points Extra to the 80 AP for dis-/advantages

    if a dis-/advantage has the parameter "sex=true" it first the 20AP pot get's filled with sex dis-/avantages then if the 20 AP are already exhausted it counts against the 80 ap for dis-/advantages in general

  3. Bernhard Jung repo owner

    So I think the new implementation does what we want. See commit d2d5797

    It is now possible to add tags to any rule element. I added "tags": "sex" to the top of the disadvantages.json and advantages.json from Wege der Vereinigung. Any dis-/advantages with this tag is counted towards the 20 extra AP.

    I also changed how the maximum AP are set in the rulesconfig.json. I removed the properties that set the +/-80 AP and +/-50 AP and replaced them with the array "maxap" that contains objects that configure max AP thresholds.

  4. Log in to comment