Options
All
  • Public
  • Public/Protected
  • All
Menu

Module view/PlayerPanel

Functions

Const PlayerPanel

  • PlayerPanel(): Element
  • React Component representing panel containing information about currently logged player. It includes his current state (skills, resources etc.), pending action (if any), currently equipped items and his inventory.

    Returns Element

Const statToBonus

  • statToBonus(stat: number): number
  • Helper function transforming skill value (0..200) to its percentual bonus (0..50 %).

    Parameters

    • stat: number

      Skill between 0 and 200

    Returns number

Generated using TypeDoc