Search in sources :

Example 1 with TestNPC

use of com.lilithsthrone.game.character.npc.dominion.TestNPC in project liliths-throne-public by Innoxia.

the class Game method initNewGame.

public void initNewGame(DialogueNodeOld startingDialogueNode) {
    // Set up NPCs:
    try {
        NPCMap.clear();
        addNPC(new GenericMaleNPC(), false);
        addNPC(new GenericFemaleNPC(), false);
        addNPC(new GenericAndrogynousNPC(), false);
        addNPC(new PrologueMale(), false);
        addNPC(new PrologueFemale(), false);
        addNPC(new TestNPC(), false);
        // Story:
        Lilaya lilaya = new Lilaya();
        addNPC(lilaya, false);
        lilaya.setAffection(Main.game.getPlayer(), AffectionLevel.POSITIVE_ONE_FRIENDLY.getMedianValue());
        Rose rose = new Rose();
        addNPC(rose, false);
        rose.setAffection(Main.game.getPlayer(), AffectionLevel.POSITIVE_ONE_FRIENDLY.getMedianValue());
        lilaya.addSlave(rose);
        rose.setObedience(ObedienceLevel.POSITIVE_FIVE_SUBSERVIENT.getMedianValue());
        lilaya.setAffection(rose, AffectionLevel.POSITIVE_FOUR_LOVE.getMedianValue());
        rose.setAffection(lilaya, AffectionLevel.POSITIVE_FOUR_LOVE.getMedianValue());
        Brax brax = new Brax();
        addNPC(brax, false);
        CandiReceptionist candiReceptionist = new CandiReceptionist();
        addNPC(candiReceptionist, false);
        brax.setAffection(candiReceptionist, AffectionLevel.POSITIVE_TWO_LIKE.getMedianValue());
        candiReceptionist.setAffection(brax, AffectionLevel.POSITIVE_TWO_LIKE.getMedianValue());
        // Shopping Promenade:
        addNPC(new Ralph(), false);
        addNPC(new Nyan(), false);
        addNPC(new Vicky(), false);
        addNPC(new Pix(), false);
        addNPC(new Kate(), false);
        // Harpy nests:
        Scarlett scarlett = new Scarlett();
        addNPC(scarlett, false);
        Alexa alexa = new Alexa();
        addNPC(alexa, false);
        alexa.setAffection(scarlett, AffectionLevel.NEGATIVE_FOUR_HATE.getMedianValue());
        scarlett.setAffection(alexa, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        scarlett.setAffection(Main.game.getPlayer(), AffectionLevel.NEGATIVE_TWO_DISLIKE.getMedianValue());
        HarpyBimbo harpyBimbo = new HarpyBimbo();
        addNPC(harpyBimbo, false);
        HarpyBimboCompanion harpyBimboCompanion = new HarpyBimboCompanion();
        addNPC(harpyBimboCompanion, false);
        harpyBimbo.setAffection(harpyBimboCompanion, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        harpyBimboCompanion.setAffection(harpyBimbo, AffectionLevel.POSITIVE_FIVE_WORSHIP.getMedianValue());
        HarpyDominant harpyDominant = new HarpyDominant();
        addNPC(harpyDominant, false);
        HarpyDominantCompanion harpyDominantCompanion = new HarpyDominantCompanion();
        addNPC(harpyDominantCompanion, false);
        harpyDominant.setAffection(harpyDominantCompanion, AffectionLevel.POSITIVE_ONE_FRIENDLY.getMedianValue());
        harpyDominantCompanion.setAffection(harpyDominant, AffectionLevel.POSITIVE_FIVE_WORSHIP.getMedianValue());
        HarpyNympho harpyNympho = new HarpyNympho();
        addNPC(harpyNympho, false);
        HarpyNymphoCompanion harpyNymphoCompanion = new HarpyNymphoCompanion();
        addNPC(harpyNymphoCompanion, false);
        harpyNympho.setAffection(harpyNymphoCompanion, AffectionLevel.POSITIVE_FOUR_LOVE.getMedianValue());
        harpyNymphoCompanion.setAffection(harpyNympho, AffectionLevel.POSITIVE_FIVE_WORSHIP.getMedianValue());
        addNPC(new Pazu(), false);
        addNPC(new Finch(), false);
        // Zaranix:
        Zaranix zaranix = new Zaranix();
        addNPC(zaranix, false);
        ZaranixMaidKatherine katherine = new ZaranixMaidKatherine();
        addNPC(katherine, false);
        ZaranixMaidKelly kelly = new ZaranixMaidKelly();
        addNPC(kelly, false);
        Amber amber = new Amber();
        addNPC(amber, false);
        zaranix.setAffection(katherine, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        zaranix.setAffection(kelly, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        zaranix.setAffection(amber, AffectionLevel.POSITIVE_FOUR_LOVE.getMedianValue());
        amber.setAffection(zaranix, AffectionLevel.POSITIVE_FOUR_LOVE.getMedianValue());
        amber.setAffection(kelly, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        amber.setAffection(katherine, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        kelly.setAffection(zaranix, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        kelly.setAffection(katherine, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        kelly.setAffection(amber, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        katherine.setAffection(zaranix, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        katherine.setAffection(kelly, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        katherine.setAffection(amber, AffectionLevel.POSITIVE_THREE_CARING.getMedianValue());
        addNPC(new Arthur(), false);
        addNPC(new Ashley(), false);
        addNPC(new SupplierLeader(), false);
        addNPC(new SupplierPartner(), false);
    } catch (Exception e) {
        e.printStackTrace();
    }
    // This is due to the fact that on new world creation, the player is placed at coordinates (0, 0), which reveals the three squares at the bottom left corner of the map:
    Main.game.getActiveWorld().getCell(0, 0).setDiscovered(false);
    Main.game.getActiveWorld().getCell(0, 1).setDiscovered(false);
    Main.game.getActiveWorld().getCell(1, 0).setDiscovered(false);
    started = true;
    setContent(new Response(startingDialogueNode.getLabel(), startingDialogueNode.getDescription(), startingDialogueNode));
}
Also used : Ralph(com.lilithsthrone.game.character.npc.dominion.Ralph) Kate(com.lilithsthrone.game.character.npc.dominion.Kate) Amber(com.lilithsthrone.game.character.npc.dominion.Amber) Arthur(com.lilithsthrone.game.character.npc.dominion.Arthur) Rose(com.lilithsthrone.game.character.npc.dominion.Rose) Zaranix(com.lilithsthrone.game.character.npc.dominion.Zaranix) CandiReceptionist(com.lilithsthrone.game.character.npc.dominion.CandiReceptionist) HarpyNymphoCompanion(com.lilithsthrone.game.character.npc.dominion.HarpyNymphoCompanion) GenericAndrogynousNPC(com.lilithsthrone.game.character.npc.GenericAndrogynousNPC) HarpyBimbo(com.lilithsthrone.game.character.npc.dominion.HarpyBimbo) Scarlett(com.lilithsthrone.game.character.npc.dominion.Scarlett) HarpyBimboCompanion(com.lilithsthrone.game.character.npc.dominion.HarpyBimboCompanion) GenericMaleNPC(com.lilithsthrone.game.character.npc.GenericMaleNPC) HarpyDominant(com.lilithsthrone.game.character.npc.dominion.HarpyDominant) Finch(com.lilithsthrone.game.character.npc.dominion.Finch) SupplierPartner(com.lilithsthrone.game.character.npc.dominion.SupplierPartner) TestNPC(com.lilithsthrone.game.character.npc.dominion.TestNPC) HarpyDominantCompanion(com.lilithsthrone.game.character.npc.dominion.HarpyDominantCompanion) PrologueMale(com.lilithsthrone.game.character.npc.PrologueMale) Alexa(com.lilithsthrone.game.character.npc.dominion.Alexa) ZaranixMaidKelly(com.lilithsthrone.game.character.npc.dominion.ZaranixMaidKelly) Pazu(com.lilithsthrone.game.character.npc.dominion.Pazu) PrologueFemale(com.lilithsthrone.game.character.npc.PrologueFemale) TransformerException(javax.xml.transform.TransformerException) ParserConfigurationException(javax.xml.parsers.ParserConfigurationException) GenericFemaleNPC(com.lilithsthrone.game.character.npc.GenericFemaleNPC) Lilaya(com.lilithsthrone.game.character.npc.dominion.Lilaya) Response(com.lilithsthrone.game.dialogue.responses.Response) Vicky(com.lilithsthrone.game.character.npc.dominion.Vicky) Brax(com.lilithsthrone.game.character.npc.dominion.Brax) Ashley(com.lilithsthrone.game.character.npc.dominion.Ashley) HarpyNympho(com.lilithsthrone.game.character.npc.dominion.HarpyNympho) Nyan(com.lilithsthrone.game.character.npc.dominion.Nyan) ZaranixMaidKatherine(com.lilithsthrone.game.character.npc.dominion.ZaranixMaidKatherine) SupplierLeader(com.lilithsthrone.game.character.npc.dominion.SupplierLeader) Pix(com.lilithsthrone.game.character.npc.dominion.Pix)

Aggregations

GenericAndrogynousNPC (com.lilithsthrone.game.character.npc.GenericAndrogynousNPC)1 GenericFemaleNPC (com.lilithsthrone.game.character.npc.GenericFemaleNPC)1 GenericMaleNPC (com.lilithsthrone.game.character.npc.GenericMaleNPC)1 PrologueFemale (com.lilithsthrone.game.character.npc.PrologueFemale)1 PrologueMale (com.lilithsthrone.game.character.npc.PrologueMale)1 Alexa (com.lilithsthrone.game.character.npc.dominion.Alexa)1 Amber (com.lilithsthrone.game.character.npc.dominion.Amber)1 Arthur (com.lilithsthrone.game.character.npc.dominion.Arthur)1 Ashley (com.lilithsthrone.game.character.npc.dominion.Ashley)1 Brax (com.lilithsthrone.game.character.npc.dominion.Brax)1 CandiReceptionist (com.lilithsthrone.game.character.npc.dominion.CandiReceptionist)1 Finch (com.lilithsthrone.game.character.npc.dominion.Finch)1 HarpyBimbo (com.lilithsthrone.game.character.npc.dominion.HarpyBimbo)1 HarpyBimboCompanion (com.lilithsthrone.game.character.npc.dominion.HarpyBimboCompanion)1 HarpyDominant (com.lilithsthrone.game.character.npc.dominion.HarpyDominant)1 HarpyDominantCompanion (com.lilithsthrone.game.character.npc.dominion.HarpyDominantCompanion)1 HarpyNympho (com.lilithsthrone.game.character.npc.dominion.HarpyNympho)1 HarpyNymphoCompanion (com.lilithsthrone.game.character.npc.dominion.HarpyNymphoCompanion)1 Kate (com.lilithsthrone.game.character.npc.dominion.Kate)1 Lilaya (com.lilithsthrone.game.character.npc.dominion.Lilaya)1