<commit_before>/*
 * This file is part of Kotaka, a mud library for DGD
 * http://github.com/shentino/kotaka
 *
 * Copyright (C) 2012  <NAME>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#include <kotaka/paths.h>
#include <text/paths.h>

inherit LIB_RAWVERB;

void main(object actor, string args)
{
	object env;
	object *inv;

	int i, sz;

	if (!actor) {
		send_out("You must be in character to use this command.\n");
		return;
	}

	env = actor->query_environment();

	if (!env) {
		send_out("Oh dear, you are outside reality itself and there's nowhere to go.\n");
		return;
	}

	inv = env->query_inventory();
	sz = sizeof(inv);

	for (i = 0; i < sz; i++) {
		object exit;

		exit = inv[i];

		if (args == exit->query_direction()) {
			object target;

			target = exit->query_destination();

			if (target) {
				generic_emit(actor, ({ "go", "goes" }), exit, "through");
				return;
			}

			actor->move(target);
		}
	}

	send_out("No such exit.");
}<commit_msg>I'm still an idiot<commit_after>/*
 * This file is part of Kotaka, a mud library for DGD
 * http://github.com/shentino/kotaka
 *
 * Copyright (C) 2012  <NAME>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#include <kotaka/paths.h>
#include <text/paths.h>

inherit LIB_RAWVERB;

void main(object actor, string args)
{
	object env;
	object *inv;

	int i, sz;

	if (!actor) {
		send_out("You must be in character to use this command.\n");
		return;
	}

	env = actor->query_environment();

	if (!env) {
		send_out("Oh dear, you are outside reality itself and there's nowhere to go.\n");
		return;
	}

	inv = env->query_inventory();
	sz = sizeof(inv);

	for (i = 0; i < sz; i++) {
		object exit;

		exit = inv[i];

		if (args == exit->query_direction()) {
			object target;

			target = exit->query_destination();

			if (target) {
				actor->move(target);
				generic_emit(actor, ({ "go", "goes" }), exit, "through");
				return;
			}
		}
	}

	send_out("No such exit.");
}
{'fraction_non_alphanumeric': 0.11829306557891434, 'fraction_numerical': 0.0037652965171007216, 'mean_word_length': 3.4277777777777776, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2476398', 'n_tokens_mistral': 1078, 'n_tokens_neox': 983, 'n_words': 401}