<commit_before>module("triggerfield.enduranceCave", package.seeall)

require("quest.enduranceCave")

-- INSERT INTO triggerfields VALUES (1,1,0,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (20,3,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (30,3,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (38,5,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (38,10,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (38,15,-15,'triggerfield.enduranceCave');

function MoveToField(User)
	
	if User.pos == (position(1,1,0)) then
	User:forceWarp(position(7,8,-15));
	end
	
	if User.pos == (position(20,3,-15)) then
	PlayerInCave, t_dest = quest.enduranceCave.InCave(User);
		if (PlayerInCave) then
		gate = t_dest;
		end
	end
	
		if User.pos == (position (20,3,-15)) 
				or User.pos == (position  (30, 3, -15))
				or User.pos == (position  (38,5,-15)) 
				or User.pos == (position  (38,10,-15)) 
				or User.pos == (position (38,15,-15))
		then
			if gate ~= nil then
	
			local dest = position( gate[ 1 ], gate[ 2 ], gate[ 3 ] );
				world:makeSound( 4, dest )
                
				world:gfx( 41, User.pos )
				User:warp( dest );<commit_msg>Endurance Cave<commit_after>module("triggerfield.enduranceCave", package.seeall)

require("quest.enduranceCave")

-- INSERT INTO triggerfields VALUES (1,1,0,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (20,3,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (30,3,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (38,5,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (38,10,-15,'triggerfield.enduranceCave');
-- INSERT INTO triggerfields VALUES (38,15,-15,'triggerfield.enduranceCave');

function MoveToField(User)
	
	if User.pos == (position(1,1,0)) then
	User:forceWarp(position(7,8,-15));
	end
	
	--[[if User.pos == (position(20,3,-15)) then
	PlayerInCave, t_dest = quest.enduranceCave.InCave(User);
		if (PlayerInCave) then
		gate = t_dest;
		end
	end]]
	
		if User.pos == (position (20,3,-15)) 
				or User.pos == (position  (30, 3, -15))
				or User.pos == (position  (38,5,-15)) 
				or User.pos == (position  (38,10,-15)) 
				or User.pos == (position (38,15,-15))
		then
		PlayerInCave, t_dest = quest.enduranceCave.InCave(User);
		if (PlayerInCave) then
		gate = t_dest;
		end
			if gate ~= nil then
	
			local dest = position( gate[ 1 ], gate[ 2 ], gate[ 3 ] );
				world:makeSound( 4, dest )
                
				world:gfx( 41, User.pos )
				User:warp( dest );
{'fraction_non_alphanumeric': 0.1629601226993865, 'fraction_numerical': 0.057515337423312884, 'mean_word_length': 3.988527724665392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3843393', 'n_tokens_mistral': 1104, 'n_tokens_neox': 914, 'n_words': 208}