don't let the BuyerAdder add a handler for "offer" for NPCs that already defined one (fixes #3033411)
This commit is contained in:
parent
123e7de072
commit
a9572bf66d
4 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ public class DwarfBuyerGuyNPC extends SpeakerNPCFactory {
|
|||
offerings.put("magical needle", 1000);
|
||||
offerings.put("snowglobe", 150);
|
||||
offerings.put("silk gland", 500);
|
||||
new BuyerAdder().add(dwarfguy, new BuyerBehaviour(offerings), true);
|
||||
new BuyerAdder().add(dwarfguy, new BuyerBehaviour(offerings), false);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class KirdnehFishyMarketNPC implements ZoneConfigurator {
|
|||
addReply("aye", "Well, shiver me timbers! Check out that blackboard o'er thar fer me prices an' what i be buyin");
|
||||
addReply("no", "You lily-livered scallywag! Why ye be wastin me time?");
|
||||
addHelp("An' just what do ya think a buccanneer such as meself could possibly help ye with?");
|
||||
new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyfishes")), true);
|
||||
new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyfishes")), false);
|
||||
addOffer("Check out that thar blackboard fer how many dubloons I be givin.");
|
||||
addQuest("Ye don't ha'e the guts ta do whut I need done.");
|
||||
addGoodbye("Arrgh, avast an' be gone with ye!");
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public class ChiefFalatheenDishwasherNPC extends SpeakerNPCFactory {
|
|||
dishwasher.addQuest("You could try to help me #escape from these hoodlums. Well... maybe not.");
|
||||
dishwasher.addGoodbye("Don't forget where I am now. Come back and see me some time. I do get lonely.");
|
||||
dishwasher.addReply("escape", "Yes! I want to pursue my dream. Mother Helena offered me a most wonderful job. She needs a dishwasher. Lots of complaining customers!!!");
|
||||
new BuyerAdder().add(dishwasher, new BuyerBehaviour(shops.get("buyveggiesandherbs")), true);
|
||||
new BuyerAdder().add(dishwasher, new BuyerBehaviour(shops.get("buyveggiesandherbs")), false);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public class ArcheryDealerNPC extends SpeakerNPCFactory {
|
|||
offerings.put("composite bow", 350);
|
||||
offerings.put("hunter crossbow", 800);
|
||||
offerings.put("mithril bow", 2000);
|
||||
new BuyerAdder().add(magearcher, new BuyerBehaviour(offerings), true);
|
||||
new BuyerAdder().add(magearcher, new BuyerBehaviour(offerings), false);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue