game: Titelschirm und Erstellungs-Feinschliff — Labels, Startausrüstung, RK
This commit is contained in:
parent
f8d8f56b86
commit
037a445e3c
33 changed files with 428 additions and 60 deletions
|
|
@ -149,9 +149,20 @@ func tp_max() -> int:
|
|||
return maxi(1, int(klasse.get("hit_die", 6)) + kon)
|
||||
|
||||
|
||||
## RK ohne Ausrüstung — Startausrüstung ist noch nicht entschieden.
|
||||
## RK mit der Startausrüstung der Klasse (docs/charaktererstellung.md).
|
||||
func rk() -> int:
|
||||
return 10 + Dice.modifier(endwert("dex"))
|
||||
var ac := 10 + Dice.modifier(endwert("dex"))
|
||||
var start := startausruestung()
|
||||
if start.has("armor"):
|
||||
ac += int(Content.entry("items", str(start["armor"])).get("ac_bonus", 0))
|
||||
if bool(start.get("shield", false)):
|
||||
ac += int(Content.entry("items", "schild").get("ac_bonus", 1))
|
||||
return ac
|
||||
|
||||
|
||||
## Startausrüstung steht in `classes.json`; die Engine liest dieselbe Quelle.
|
||||
func startausruestung() -> Dictionary:
|
||||
return Content.class_def(klasse_id).get("starting_equipment", {})
|
||||
|
||||
|
||||
func angriff() -> int:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue