From: Daniel H. <wik...@us...> - 2006-08-30 01:02:53
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/maps In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv32113/src/games/stendhal/server/maps Modified Files: Semos.java Log Message: As most of the code is now in SpeakerNPC.addProducer(), the quest classes CastIron and MakeBread were deleted, and the few remaining lines of code were moved back to Semos.java. Index: Semos.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/Semos.java,v retrieving revision 1.95 retrieving revision 1.96 diff -C2 -d -r1.95 -r1.96 *** Semos.java 30 Aug 2006 00:21:34 -0000 1.95 --- Semos.java 30 Aug 2006 01:02:48 -0000 1.96 *************** *** 14,17 **** --- 14,18 ---- import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.NPCList; + import games.stendhal.server.entity.npc.ProducerBehaviour; import games.stendhal.server.entity.npc.SellerBehaviour; import games.stendhal.server.entity.npc.ShopList; *************** *** 21,26 **** --- 22,29 ---- import games.stendhal.server.pathfinder.Path; + import java.util.HashMap; import java.util.LinkedList; import java.util.List; + import java.util.Map; import marauroa.common.game.IRPZone; *************** *** 352,357 **** // won't sell tools anymore. addSeller(new SellerBehaviour(ShopList.get().get("selltools"))); ! ! // all further behaviour is defined in CastIron.java. } }; --- 355,370 ---- // won't sell tools anymore. addSeller(new SellerBehaviour(ShopList.get().get("selltools"))); ! ! // Xoderos casts iron if you bring him wood and iron ore. ! Map<String, Integer> requiredResources = new HashMap<String, Integer>(); ! requiredResources.put("wood", new Integer(1)); ! requiredResources.put("iron_ore", new Integer(1)); ! ! ProducerBehaviour behaviour = new ProducerBehaviour( ! "xoderos_cast_iron", "cast", "bars", "iron", requiredResources, 5 * 60); ! ! addProducer(behaviour, ! "Greetings. I am sorry to tell you that, because of the war, I am not allowed to sell you any weapons. However, I can #cast iron for you. I can also #offer you tools."); ! } }; *************** *** 833,836 **** --- 846,860 ---- addHelp("If you have a scythe, you can harvest grain at the nearby farm."); addGoodbye(); + + // Jenny mills flour if you bring her grain. + Map<String, Integer> requiredResources = new HashMap<String, Integer>(); + requiredResources.put("grain", new Integer(5)); + + ProducerBehaviour behaviour = new ProducerBehaviour( + "jenny_mill_flour", "mill", "bags", "flour", requiredResources, 2 * 60); + + addProducer(behaviour, + "Greetings. I am Jenny, the local miller. If you bring me #grain, I can #mill flour for you."); + } }; |