Search in sources :

Example 6 with ListValue

use of com.lilithsthrone.utils.Util.ListValue in project liliths-throne-public by Innoxia.

the class MainController method moveWest.

/**
 * Moves the player West.
 */
public void moveWest() {
    if (Main.game.getPlayer().getLocation().getX() - 1 >= 0) {
        if (Main.game.getActiveWorld().getCell(Main.game.getPlayer().getLocation().getX() - 1, Main.game.getPlayer().getLocation().getY()).getPlace().getPlaceType() != PlaceType.GENERIC_IMPASSABLE) {
            if (Main.game.getActiveWorld().getCell(Main.game.getPlayer().getLocation()).getPlace().isItemsDisappear()) {
                Main.game.getActiveWorld().getCell(Main.game.getPlayer().getLocation()).resetInventory(Util.newArrayListOfValues(new ListValue<>(Rarity.LEGENDARY)));
            }
            Main.game.getPlayer().setLocation(new Vector2i(Main.game.getPlayer().getLocation().getX() - 1, Main.game.getPlayer().getLocation().getY()));
            DialogueNodeOld dn = Main.game.getActiveWorld().getCell(Main.game.getPlayer().getLocation()).getPlace().getDialogue(true);
            Main.game.setContent(new Response("", "", dn));
        }
    }
}
Also used : Response(com.lilithsthrone.game.dialogue.responses.Response) ListValue(com.lilithsthrone.utils.Util.ListValue) DialogueNodeOld(com.lilithsthrone.game.dialogue.DialogueNodeOld) Vector2i(com.lilithsthrone.utils.Vector2i)

Aggregations

ListValue (com.lilithsthrone.utils.Util.ListValue)6 Response (com.lilithsthrone.game.dialogue.responses.Response)5 DialogueNodeOld (com.lilithsthrone.game.dialogue.DialogueNodeOld)4 Vector2i (com.lilithsthrone.utils.Vector2i)4 BodyPartInterface (com.lilithsthrone.game.character.body.BodyPartInterface)1 Eye (com.lilithsthrone.game.character.body.Eye)1 Hair (com.lilithsthrone.game.character.body.Hair)1 Skin (com.lilithsthrone.game.character.body.Skin)1 Vagina (com.lilithsthrone.game.character.body.Vagina)1 NPC (com.lilithsthrone.game.character.npc.NPC)1 SlaveryEventLogEntry (com.lilithsthrone.game.dialogue.eventLog.SlaveryEventLogEntry)1