Packages - ThePix/rpg_web GitHub Wiki

A package is created with a name and a dictionary of data.

  new Package('Defender', {
    notes:[
      'A character can only be subject to one mark at a time. A mark lasts until the marker marks another or the marked is marked by another or either party is dead or unconscious. Marking a foe is a free action.'
    ],
    hitsPerLevel:2,
    bonuses:[
      new Bonus('weapons', {progression:3}),
      new Bonus('armour', {progression:[2, 5, 14]}),
      new Bonus('stamina', {progression:'secondary2'}),
    ],
  }),

The data is composed of the following entries:

Name Type Value
notes array of strings optional
hitsPerLevel number optional
bonuses array of Bonus objects

Bonuses

A bonus is also created with a name and a dictionary of data. The data is composed of the following entries:

Name Type Value
progression various
notes array of strings optional
flags string

The progression entry can take various types of values.

Type|Comment number|when the player has that number of ranks in the package, the bonus is applied array of numbers|player gains a grade in the bonus at each numbered level 'primary'|