<commit_before>import "../Feature.dart";
import "../../GameEntities/NPCS.dart";
import "../../SessionEngine/session.dart";
import "../../SBURBSim.dart";


class ConsortFeature extends Feature {
    /// what are these consorts called?
    String name;
    ///what sound do these consorts make?
    String sound;
    ///TODO eventually have an actual npc object associated here, to generate npc helpers
    ///TODO eventually have like a color for npcs, once we have the rendering engine. maybe the FeatureFactory version of a consort is generic, but when given to a land a random color is rolled.
    ConsortFeature(this.name, this.sound);

    Consort makeConsort(Session s) {
        return new Consort.withSound(name, s, sound);
    }

    //passed in specific can have 'ands' in the middle
     String randomNeutralFlavorText(Random rand, Player p) {
        WeightedList<String> possibilities = new WeightedList<String>();
        possibilities.add("The local ${name}s begin flipping the fuck out. Do they ever stop ${sound}ing?");
        possibilities.add("A local ${name} shows up wearing some bedsheets and  ${sound}ing up a storm. You're not sure you want to know. ");
        possibilities.add("With a loud ${sound.toUpperCase()} a local $name falls over, comically. Adorable.",0.3);
        return rand.pickFrom(possibilities);
    }

}

class CarapaceFeature extends ConsortFeature {
    /// what are these consorts called?
    String name;
    ///what sound do these consorts make?
    String sound;
    ///TODO eventually have an actual npc object associated here, to generate npc helpers
    ///TODO eventually have like a color for npcs, once we have the rendering engine. maybe the FeatureFactory version of a consort is generic, but when given to a land a random color is rolled.
    CarapaceFeature(String name, String sound): super(name, sound);

    Carapace makeCarapace(Session s) {
        return new Carapace(name, s);
    }

    //passed in specific can have 'ands' in the middle
    String randomNeutralFlavorText(Random rand, Player p) {
        WeightedList<String> possibilities = new WeightedList<String>();
        possibilities.add("The local ${name}s begin flipping the fuck out. Do they ever stop ${sound}ing?");
        possibilities.add("A local ${name} shows up wearing some bedsheets and  ${sound}ing up a storm. You're not sure you want to know. ");
        possibilities.add("With a loud ${sound.toUpperCase()} a local $name falls over, comically. Adorable.",0.3);
        return rand.pickFrom(possibilities);
    }

}<commit_msg>there we go. now just gotta debug why it crashes after dinner<commit_after>import "../Feature.dart";
import "../../GameEntities/NPCS.dart";
import "../../SessionEngine/session.dart";
import "../../SBURBSim.dart";


class ConsortFeature extends Feature {
    /// what are these consorts called?
    String name;
    ///what sound do these consorts make?
    String sound;
    ///TODO eventually have an actual npc object associated here, to generate npc helpers
    ///TODO eventually have like a color for npcs, once we have the rendering engine. maybe the FeatureFactory version of a consort is generic, but when given to a land a random color is rolled.
    ConsortFeature(this.name, this.sound);

    Consort makeConsort(Session s) {
        return new Consort.withSound(name, s, sound);
    }

    //passed in specific can have 'ands' in the middle
     String randomNeutralFlavorText(Random rand, Player p) {
        WeightedList<String> possibilities = new WeightedList<String>();
        possibilities.add("The local ${name}s begin flipping the fuck out. Do they ever stop ${sound}ing?");
        possibilities.add("A local ${name} shows up wearing some bedsheets and  ${sound}ing up a storm. You're not sure you want to know. ");
        possibilities.add("With a loud ${sound.toUpperCase()} a local $name falls over, comically. Adorable.",0.3);
        return rand.pickFrom(possibilities);
    }

}

class CarapaceFeature extends ConsortFeature {
    CarapaceFeature(String name, String sound): super(name, sound);

    Carapace makeCarapace(Session s) {
        return new Carapace(name, s);
    }

    //passed in specific can have 'ands' in the middle
    String randomNeutralFlavorText(Random rand, Player p) {
        WeightedList<String> possibilities = new WeightedList<String>();
        possibilities.add("The local ${name}s begin flipping the fuck out. Do they ever stop ${sound}ing?");
        possibilities.add("A local ${name} shows up wearing some bedsheets and  ${sound}ing up a storm. You're not sure you want to know. ");
        possibilities.add("With a loud ${sound.toUpperCase()} a local $name falls over, comically. Adorable.",0.3);
        return rand.pickFrom(possibilities);
    }

}
{'fraction_non_alphanumeric': 0.10275689223057644, 'fraction_numerical': 0.001670843776106934, 'mean_word_length': 3.3378623188405796, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': 4, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3865359', 'n_tokens_mistral': 1315, 'n_tokens_neox': 1313, 'n_words': 532}