blob: c21ccce5972b92967de4a050d101c43fb48fb303 (
plain) (
tree)
|
|
function script XmasStates {
// Check for Old Quest Line Keys. Reset Quest if so.
callfunc "XmasCheckOld";
// Main Quest
@xmas_state = ((XMASTIME & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
@xmas_karma = ((XMASTIME & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT);
@xmas_side = XMASTIME & $@xmas_side_bit;
@xmas_list_gather = (@xmas_state >= $@xmas_list_path2_state);
@xmas_list_path2 = (@xmas_state == $@xmas_list_path2_state);
@xmas_list_path1 = (@xmas_state == $@xmas_list_path1_state);
@xmas_list_both = (@xmas_state == $@xmas_list_both_state);
@xmas_list_complete = (@xmas_state >= $@xmas_list_complete_state);
@xmas_list_deliver = (@xmas_state >= $@xmas_list_deliver_state);
@xmas_helper_start_state = (@xmas_state >= $@xmas_helpers_start_state);
@xmas_helper_done_state = (@xmas_state >= $@xmas_helpers_done_state);
@xmas_reagent_start_state = (@xmas_state >= $@xmas_reagents_start);
@xmas_reagent_done_state = (@xmas_state >= $@xmas_reagents_done);
@xmas_boss_door_state = (@xmas_state >= $@xmas_boss_door_open_state);
@xmas_reward_start_state = (@xmas_state == $@xmas_reward_start);
@xmas_reward1_done_state = (@xmas_state == $@xmas_reward1_done);
@xmas_reward2_done_state = (@xmas_state == $@xmas_reward2_done);
@xmas_reward_done_state = (@xmas_state == $@xmas_reward_done);
// Basement Passage
@xmas_basement_passage = XMASTIME & $@xmas_basement_passage;
// Thrown Out
@xmas_thrown_out = XMASTIME & $@xmas_thrown_out_bit;
// Learned Route to Orum
@xmas_knows_route = XMASTIME & $@xmas_route_bit;
// Santas Helper
@xmas_sh_done = XMASTIME & $@xmas_sh_bit;
// List Quest
@xmas_all_lists = XMASTIME & $@xmas_all_lists_bit;
// Helper Quest
@xmas_helper_bit = XMASTIME & $@xmas_helper_bit;
@xmas_all_helpers = XMASTIME & $@xmas_all_helpers_bit;
// Acorns
@xmas_helper_acorn = XMASTIME & $@xmas_helper_bit_acorns;
// Bedding
@xmas_helper_bedding = XMASTIME & $@xmas_helper_bit_bed_starts;
// Glitter
@xmas_helper_glitter = XMASTIME & $@xmas_helper_bit_glitter_starts;
// Storage
@xmas_helper_storage = XMASTIME & $@xmas_helper_bit_storage;
// Bosses
@xmas_boss_start = XMASTIME & $@xmas_boss_start_bit;
@xmas_boss_hero = XMASTIME & $@xmas_boss_hero_bit;
return;
}
|