Skip to content

Commit

Permalink
sometime, you fight before class
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <uso.cosmo.ray@gmail.com>
  • Loading branch information
cosmo-ray committed Dec 16, 2023
1 parent 5ea13a0 commit 14827d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion ai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions quests_specific.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vn-scene/class.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
Expand Down

0 comments on commit 14827d5

Please sign in to comment.