mwg API
    Preparing search index...

    Function alignmentBonus

    • What one alignment gets out of the time of day's own lawfulBonus, in percent: a lawful unit takes it, a chaotic one takes its negation, and neutral and liminal units ignore the time entirely (the reference's own four align= values).

      Parameters

      Returns number

      import { alignmentBonus } from '@datamoc/mw_games/world';

      alignmentBonus('lawful', 25); // 25 - day favours a lawful unit
      alignmentBonus('chaotic', 25); // -25 - the same day punishes a chaotic one
      alignmentBonus('neutral', 25); // 0 - neutral ignores the time of day