summaryrefslogtreecommitdiff
path: root/demo.lua
blob: a855cbc9326fd3731a5a619fff4b039f57f34fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env lua5.1

local d = require 'draw'

local stats = {
	name = 'Azer',
	alignment = "lawful neutral",
	size = "medium",
	type = "elemental",

	ac = '17 (natural armor, shield)',
	hp = '39 (6d8 + 12)',
	speed = '30 ft.',

	str = 17,
	dex = 12,
	con = 15,
	int = 12,
	wis = 13,
	cha = 10,

	saving_throws = 'Con +4',
	immunities = 'fire, poison',
	condition_immunities = 'poisoned',
	senses = 'passive Perception 11',
	languages = 'Ignan',
	cr = '2 (450 XP)',

	traits = {
		{ name='Heated Body', value="A creature that touches the azer or hits it with a melee attack while within 5 feet of it takes 5 (1d10) fire damage." },
		{ name="Heated Weapons", value="When the azer hits with a metal melee weapon, it deals and extra 3 (1d6) fire damage (included in the attack)." },
		{ name="Illumination", value="The azer sheds bright light in a 10=foot radius and dim light for an additional 10 feet." },
	},

	actions = {
		{ name='Warhammer', value="*Melee Weapon Attack:* +5 to hit, reach 5 ft., one target. *Hit:* 7 (1d8 + 3) bludgeoning damage or 8 (1d10 + 3) bludgeoning damage if used with two hands to make a melee attack, plus 3 (1d6) fire damage." },
	},
}


print(d.draw(stats))