Ejemplo n.º 1
0
        public void doEvent()
        {
            for (int i = 0; i < currentLocation.getEvent().getMods().Count; i++)
            {
                if (currentLocation.getEvent().getMods()[i].ToLower() == "creature")
                {
                    AddOutputMessage("Creatures appeared:");
                    // spawn creature
                    for (int j = 0; j < currentLocation.getEvent().getValues()[i]; j++)
                    {
                        AddOutputMessage(currentLocation.addNewCreature(currentLocation.getEvent().getTypes()[i], currentLocation.getEvent().getTypes()[i], currentLocation.getEvent().getAreaType()));
                    }
                }
                if (currentLocation.getEvent().getMods()[i].ToLower() == "item")
                {
                    //spawn item
                    AddOutputMessage(currentLocation.addNewItem(currentLocation.getEvent().getTypes()[i], currentLocation.getEvent().getTypes()[i], currentLocation.getEvent().getAreaType(), currentLocation.getEvent().getValues()[i]) + " has appeared");
                }
                if (currentLocation.getEvent().getMods()[i].ToLower() == "player")
                {
                    AddOutputMessage("Player Stuff needs to be done");
                }
            }

            Story.addToCurrentEvents("In the " + currentLocation.getArea().getName() + " " + currentLocation.getEvent().outputData());
            AddOutputMessage("\n" + currentLocation.getEvent().outputData());
        }