<commit_before>import {Game} from "../../core/models/game";
import {Artifact} from "../../core/models/artifact";
import {Monster} from "../../core/models/monster";
import {RoomExit} from "../../core/models/room";
import {Room} from "../../core/models/room";
import {ReadCommand, OpenCommand} from "../../core/commands/core-commands";
import {CommandException} from "../../core/utils/command.exception";

export var event_handlers = {

  "intro": function() {
    let game = Game.getInstance();

    if (game.player.gender === 'f') {
      game.intro_text[0] = game.intro_text[0].replace("Larcenous Lil", "Slippery Sven");
      game.intro_text[0] = game.intro_text[0].replace("Lil", "Sven");
      game.intro_text[0] = game.intro_text[0].replace("She", "He");
    }
  },

  "start": function() {
    let game = Game.getInstance();

    // Lil or Sven?
    if (game.player.gender === 'f') {
      game.intro_text = game.intro_text.replace("Larcenous Lil", "Slippery Sven");
      game.artifacts.get(26).destroy();
      game.artifacts.get(40).moveToRoom(52);<commit_msg>Fixes for game intro text<commit_after>import {Game} from "../../core/models/game";
import {Artifact} from "../../core/models/artifact";
import {Monster} from "../../core/models/monster";
import {RoomExit} from "../../core/models/room";
import {Room} from "../../core/models/room";
import {ReadCommand, OpenCommand} from "../../core/commands/core-commands";
import {CommandException} from "../../core/utils/command.exception";

export var event_handlers = {

  "intro": function() {
    let game = Game.getInstance();

    if (game.player.gender === 'f') {
      game.intro_text[0] = game.intro_text[0].replace("Larcenous Lil", "Slippery Sven");
      game.intro_text[0] = game.intro_text[0].replace("Lil", "Sven");
      game.intro_text[0] = game.intro_text[0].replace("She", "He");
    }
  },

  "start": function() {
    let game = Game.getInstance();

    // Lil or Sven?
    if (game.player.gender === 'f') {
      game.intro_text[0] = game.intro_text[0].replace("<NAME>", "<NAME>");
      game.artifacts.get(26).destroy();
      game.artifacts.get(40).moveToRoom(52);
{'fraction_non_alphanumeric': 0.2119514472455649, 'fraction_numerical': 0.012138188608776844, 'mean_word_length': 3.4368530020703933, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '6611170', 'n_tokens_mistral': 726, 'n_tokens_neox': 708, 'n_words': 139}