#NeoPeewee Pygame Engine (January 4, 2020)

import pygame

#Import Global Memory
from Scripts import Global

from Scripts.Menus import Order

class Inventory:
    def __init__(this):
        #Class Variables
        this.orders = []
        this.lizardstail = 0
        this.gryphonegg = 0
        this.spineflowerberry = 0
        this.bonemeal = 0
        this.makishroom = 0
        this.mermaidscale = 0

    def NewOrder(this, i):
        if i == 1:
            this.orders.append(Order.Order('Yves the Kind', 0, 0, 7, 0, 0, 3,
                                           ['Yves the Kind: Is my potion ready?',
                                            'Indeed it is. Lay your sword down on the table and I’ll apply the#enchantment.',
                                            '*Yves unsheathes his sword and lays it down on the countertop.*',
                                            '*After incanting a few spells and sprinkling the Knight’s sword with a#few drops from the vial, a soft glow begins to emerge from the blade.*',
                                            '*It gets brighter and brighter until it blinds both the Alchemist and the#Knight before quickly dissipating.*',
                                            '*The end result is a shimmering and gleaming blade, laid down on#the countertop where the dull and drab sword used to be.*',
                                            'Yves the Kind: You did it! Thank you, Alchemist! Here, as my#thanks.',
                                            '*Yves drops a bag of coins on the counter.*',
                                            'You’re welcome. Feel free to come back any time, Knight.',
                                            '(COMPLETE)']))
        elif i == 2:
            this.orders.append(Order.Order('Aldith', 0, 0, 0, 8, 2, 0,
                                           ['*Aldith slowly peaks through the door.*',
                                            'Aldith: Oh alchemist, how does my husband fare?',
                                            'Please come in, I am about to repair it right now.',
                                            '*The Maki Shrooms are mashed and mixed with the Bonemeal.*',
                                            '*The mixture covers the broken frame and faded photo.*',
                                            '*Steam emits from the mixture as it begins to evaporate from the#frame.*',
                                            '*Sitting on the table is a mint condition frame of a man working on a#farm.*',
                                            'Is this your husband?',
                                            'Aldith: By the heavens, I missed this face so much. I can never repay#you alchemist!',
                                            'Aldith: Please, accept what little I can provide.',
                                            '*Aldith reaches into her cloak and drops a couple of gold coins on the#counter.*',
                                            'It was no hassle, Thank you for coming to me for the task.',
                                            '(COMPLETE)']))
        elif i == 3:
            this.orders.append(Order.Order('Elnaril', 8, 1, 0, 0, 0, 0,
                                           ['*Elnaril arrives with a glass jar containing a small green frog.*',
                                            'Elnaril: Do you have the potion ready?',
                                            'I do – take out that frog, and open his mouth wide. He won’t like it, but#it’s for his own good.',
                                            '*Elnaril does as instructed, lifting the rowdy frog from the jar and#struggling to force open its mouth.*',
                                            '*He manages to pry it open for just a few seconds, but that’s all you#need – you pour a drop of the potion from its small phial.*',
                                            '*It takes a few moments for the potent magic to take affect. In a#flash, the small frog turns into a small boy. *',
                                            'Fylson: Ribbit.',
                                            'Elnaril: He’s still thinks he’s a frog!',
                                            'Common side effect of the poison Laevigata. The antidote needs time#to course through his system.',
                                            'He should be back to normal within a few hours.',
                                            'Elnaril: Thank you for saving my brother, Alchemist! Here – all my#allowance money is for you!',
                                            'Fylson: Ribbit.',
                                            '(COMPLETE)']))
        elif i == 4:
            this.orders.append(Order.Order('Phynara', 0, 0, 0, 12, 0, 0,
                                           ['*Phynara wanted a sending spell once I have some bone meal, didn’t#she?*',
                                            '*It’s been a long time since I cast a sending spell... Evocation isn’t my#strong suit.*',
                                            'It goes... Ah... Like this?',
                                            '*BANG*',
                                            'Phynara: EEEEEEK!',
                                            'Phynara: Be more careful!',
                                            'I-I have your bone meal!',
                                            'Phynara: I could have pieced that together...',
                                            'Phynara: Next time, sense the magical energy surrounding your#recipient before casting a sending spell.',
                                            'Phynara: Opposite auras interacting could end with disastrous#results!',
                                            'Phynara: Anyway... the bone meal. I’ll be taking that.',
                                            'Phynara: Here – honest payment for honest work. Use it wisely. I#want you to stay in business.',
                                            'Phynara: I could have further use of you, mortal...',
                                            'M-mortal?',
                                            '*Phynara disappears in a puff of smoke as quickly as she came.*',
                                            '(COMPLETE)']))
        elif i == 5:
            this.orders.append(Order.Order('Tanithil', 2, 0, 3, 10, 0, 0,
                                           ['Tanithil: You sent?',
                                            'I have created your soothing balm!',
                                            'Tanithil: Did you now? That’s a welcome thing to hear – I#am eager to continue on the road.',
                                            '*Tanithil rubs some of the mixture on his skin.*',
                                            'Ahh – already that feels better on my knees.',
                                            'I am glad to have been of service.',
                                            'Tanithil: Here is your payment. I will be sure to remember your name#when I pass through again.',
                                            'Thank you for your business!',
                                            '(COMPLETE)']))
        elif i == 6:
            this.orders.append(Order.Order('Rowan', 0, 0, 12, 7, 5, 3,
                                           ['Rowan: Have you found your solution alchemist?',
                                            'This is one of the bigger orders I have taken, but please give me your#bow and I will apply my mixture.',
                                            '*The Bow is placed on the table in front of you.*',
                                            '*The mixture is dumped on top of the bow creating a could of smoke#followed by a bright glow.*',
                                            '*Once the smoke cloud subsides, the Bow can be seen glimmering#on the table.*',
                                            'Is this what you were hoping?',
                                            'Rowan: Alchemist, I owe you my thanks! You have saved me many#coin...',
                                            'Rowan: Please accept this.',
                                            '*Rowan drops a good size bag of gold coins on the counter.*',
                                            'Thank you for your business!',
                                            'Rowan: I must be on my way, but I promise to share your business#with my fellow archers!',
                                            '(COMPLETE)']))
        elif i == 7:
            this.orders.append(Order.Order('Elora', 0, 0, 30, 0, 0, 0,
                                           ['*Elora sneakily enters the store.*',
                                            'Elora: Do you have the Spine Flower Berries? ',
                                            'That I do. Do you have the coin?',
                                            'Elora: I hope this is enough.',
                                            'It certainly is! Here are the berries.',
                                            'Elora: ....',
                                            'Elora: ...Can I request one more thing?',
                                            'What can I help you with?',
                                            'Elora: If anyone asks, we never made this transaction.',
                                            '.....Agreed.',
                                            'Elora: Good day.',
                                            '(COMPLETE)']))
