Module quests

Source
Expand description

Quest behaviors: progress rules, loop-task pacing, and offer triggers.

Modulesยง

loop_tasks
Native ports for the additional_quests category โ€” quest additional_quests_behaviors (run via run_event in logic::quests::{handle_claim_quest, handle_hidden_quest_completed}, returning Vec<OverlordEvent>).
progress
Native functions for the conditional_progress category โ€” quest progress behaviors (QuestTemplate::progress_behavior). Output is the new i64 progress value assigned to QuestInstance::current.
triggers
Native functions for the trigger category โ€” the offer trigger_script slot (OfferTemplate::trigger_script). A trigger script decides whether a wrapper runs it as run_expression::<bool> with Event / CharacterState / Offer in scope (see should_give_new_offer in logic/handler.rs).