{"size": 881, "ext": "js", "max_stars_repo_path": "todo/hourly/generous_tip.lpscene.js", "max_stars_repo_name": "Rizean/rizean_mods", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "todo/hourly/generous_tip.lpscene.js", "max_issues_repo_name": "Rizean/rizean_mods", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "todo/hourly/generous_tip.lpscene.js", "max_forks_repo_name": "Rizean/rizean_mods", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.24, "max_line_length": 115, "alphanum_fraction": 0.6254256527}
// noinspection ES6ConvertVarToLetConst
// path D:\other\LifePlay_4_15_64bit\LifePlay\Content\Modules\vin_Base\Scenes\hourly\generous_tip.lpscene

const {LPScene} = require('lifeplayjs')

const scene = new LPScene({name: 'generous_tip'}, (scene) => {
    const {Player, none, $WHERE, narrative, option, random, WHEN} = scene

    scene.what(["work_hourly"])
    scene.where(["bar", " pub", " nightclub", " restaurant", " cafe", " coffee", " hotel"])
    scene.when([0, 24])
    scene.who("none")
    scene.other(($IF) => {
        $IF(random(0, 1000) < Player.interpersonal)
    })


    scene.start(() => {
        narrative(`A guest left me a very generous tip. It's good people like this that makes this job bearable.`)
        Player.money += random(5, 50)
        Player.mood += 20
    })
    scene.timeout(24, "generous_tip")
})
module.exports = scene