feat: added ascension logic 4-7, added new decision (eating fast food), indicating meter changes better, added discussions (needs more work, but meh ... fine like this)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
28
inc/discussion/discussion.pizza_vendor.lua
Normal file
28
inc/discussion/discussion.pizza_vendor.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
Discussion.register({
|
||||
id = "pizza_vendor_disc",
|
||||
on_end = function()
|
||||
Context.fast_food_approaching = false
|
||||
end,
|
||||
steps = {
|
||||
{
|
||||
question = "Hey friend! Hot slice, fresh out of the oven. You look like a man who knows good food!",
|
||||
answers = {
|
||||
{
|
||||
label = "Devour a juicy one",
|
||||
next_step = nil,
|
||||
on_select = function()
|
||||
local max = Meter.get_max()
|
||||
Meter.add("wpm", math.floor(max * 0.05))
|
||||
Meter.add("ism", math.floor(max * -0.05))
|
||||
Meter.add("bm", math.floor(max * -0.05))
|
||||
Context.fast_food_eaten_today = Context.fast_food_eaten_today + 1
|
||||
end,
|
||||
},
|
||||
{
|
||||
label = "Stay lean and sharp",
|
||||
next_step = nil,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user