diff --git a/ai.lua b/ai.lua index 2455439..e8be4af 100644 --- a/ai.lua +++ b/ai.lua @@ -444,8 +444,16 @@ end function calsses_event_dialog_gen(_wid, cur_dialogue) local pj = phq.pj cur_dialogue = Entity.wrapp(cur_dialogue) + yeRemoveChild(cur_dialogue, "answer") + if yuiRand() % 5 == 0 then + cur_dialogue["text"] = "when going to class, someone try steal you" + cur_dialogue["answer"] = Entity.new_array() + cur_dialogue["answer"]["text"] = "(fight)" + cur_dialogue["answer"]["action"] = {"phq.StartFight", "Thrug"} + return + end - if phq_pc.trait.lazy > 3 and yuiRand() % 2 == 0 then + if phq_pc.trait.lazy > 3 and yuiRand() % 3 == 0 then cur_dialogue["text"] = "You slack off durring class" increaseStat(nil, phq.pj.reputation, "glandeur", 1) return diff --git a/quests_specific.lua b/quests_specific.lua index eb41663..3025e90 100644 --- a/quests_specific.lua +++ b/quests_specific.lua @@ -376,6 +376,7 @@ local function game_scene(_wid, _eve, scene_str) local scenes = ygGet("phq.game_senes") local scene = Entity.wrapp(yeGet(scenes, yeGetString(scene_str))) + ywSetTurnLengthOverwrite(-1); if yIsNil(scene) or yIsNil(scene[game_scene_state]) then yeClearArray(game_scene_npcs) game_scene_timer = 0 diff --git a/vn-scene/class.json b/vn-scene/class.json index 078fff4..c76e636 100644 --- a/vn-scene/class.json +++ b/vn-scene/class.json @@ -5,7 +5,7 @@ "answer": { "text": "class, class, class, class, wonderful class, beautiful class...", "action": [ - "Dialogue.condition_switch", ["chkInfD100", 11], + "Dialogue.condition_switch", ["chkInfD100", 70], "event", "nothing" ] }