ソースを参照

Add a bit of documentation

master
Fen Dweller 5年前
コミット
a5dac4e0ad
2個のファイルの変更7行の追加0行の削除
  1. +4
    -0
      src/game/combat.ts
  2. +3
    -0
      src/game/combat/perks.ts

+ 4
- 0
src/game/combat.ts ファイルの表示

@@ -244,6 +244,9 @@ export class UniformRandomDamageFormula implements DamageFormula {
}
}

/**
* A [[DamageFormula]] that uses the attacker's stats
*/
export class StatDamageFormula implements DamageFormula {
constructor (private factors: Array<{ stat: Stat|VoreStat; fraction: number; type: DamageType; target: Vigor|Stat }>) {

@@ -592,6 +595,7 @@ export class Effective {
return []
}
}

/**
* A displayable status effect
*/


+ 3
- 0
src/game/combat/perks.ts ファイルの表示

@@ -7,6 +7,9 @@ import { DamageConsequence, LogConsequence } from './consequences'
import { LogLine } from '../interface'
import * as Words from '../words'

/**
* A Perk is like a permanent status effect for a creature.
*/
export abstract class Perk extends Effective {
constructor (public name: TextLike, public desc: TextLike) {
super()


読み込み中…
キャンセル
保存