pub fn dev_reset_seq_handler(
world: &mut AmbleWorld,
view: &mut View,
seq_name: &str,
)Expand description
Resets a sequence flag back to step 0 (DEV_MODE only).
This development command resets a sequence flag to its initial state, effectively undoing any progress made on that sequence. This is useful for testing the beginning of multi-step processes or resetting puzzle states during development.
§Parameters
world- Mutable reference to the game world containing the playerview- Mutable reference to the player’s view for feedback messagesseq_name- Name of the sequence flag to reset
§Behavior
- Resets the named sequence flag to step 0 (if it exists)
- Preserves the flag’s step limit setting
- Displays current step value after reset (should be 0)
- If flag doesn’t exist, displays error message with helpful suggestion
- All resets are logged at
warnlevel for audit trail
§Use Cases
- Testing puzzle logic from the beginning
- Resetting story sequences for repeated testing
- Debugging sequence initialization
- Clearing progress to test different approaches