aboutsummaryrefslogtreecommitdiff
path: root/data/mobs/examples/tanner.yaml
blob: 99d64f163982385e13235a5eb52326f31a1302d7 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Tanner
description: A weathered craftsman with stained hands and a leather apron.
protected: true
unique: true
idle_descriptions:
    - scrapes at a piece of hide
    - examines a stack of leathers
    - sharpens a tanning knife
    - wipes sweat from his brow
talk:
    nodes:
        start:
            messages:
                - '"Bring me some cowhides and I''ll tan them for you. Leather is 10 credits, hard leather is 50."'
            options:
                - condition:
                    all_of:
                        - has_item: cowhide
                        - min_credits: 10
                  goto: tan_leather
                  text: '"Tan a cowhide into leather (10 credits)."'
                - condition:
                    all_of:
                        - has_item: cowhide
                        - min_credits: 50
                  goto: tan_hard_leather
                  text: '"Tan a cowhide into hard leather (50 credits)."'
                - text: '"Never mind."'
        tan_hard_leather:
            action:
                credits: -50
                give_item: hard_leather
                take_item: cowhide
            messages:
                - The tanner takes your cowhide and subjects it to an intense curing process. "Here's your hard leather."
            options:
                - condition:
                    has_item: cowhide
                  goto: start
                  text: '"Tan another."'
                - text: '"Thanks."'
        tan_leather:
            action:
                credits: -10
                give_item: leather
                take_item: cowhide
            messages:
                - The tanner takes your cowhide and works it skillfully. "Here's your leather."
            options:
                - condition:
                    has_item: cowhide
                  goto: start
                  text: '"Tan another."'
                - text: '"Thanks."'