Bug - Fixed mafia does not set the Typical Tavern quest as my last location.

Bale

Minion
Sadly, I cannot set my mood script to react appropriately to adventuring in the Typical Tavern. $location[Typical Tavern] refers to the post-quest tavern only.

Code:
[30] Typical Tavern Quest
Encounter: drunken rat
Round 0: bale loses initiative!
You lose 8 hit points
Round 1: bale attacks!
Round 2: drunken rat takes 27 damage.
Round 2: Lllama spits on your opponent. Yech.
You gain 13 Meat
You acquire an item: rat whisker
You acquire an item: plump juicy grub
After Battle: Lllama smiles at you, a knowing gleam in his eye.
You gain 7 Strongness
You gain a Muscle point!
You gain 6 Magicalness
You gain 2 Smarm
Encounter: The Cellar of the Typical Tavern

[COLOR="#808000"]> ash my_location()[/COLOR]

Returned: Spooky Forest

[COLOR="#808000"]> ash print ( $location[ Typical Tavern Quest ] )[/COLOR]

[COLOR="#ff0000"]Bad location value: "Typical Tavern Quest" ()[/COLOR]
 
Last edited by a moderator:

Bale

Minion
Incidentally this is for my personal version of MCD control, namely:

Code:
   if (my_location() == $location[boss bat's lair] || my_location() == $location[king's chamber] ||
       my_location() == $location[haert of the cyrpt] || my_location() == $location[slime tube] ||
       (my_location() == $location[Typical Tavern Quest] && get_property("tavernLayout").contains_text("3")))
      return vprint("MCD: Sensitive location, not adjusting.","olive",4);

I suspect that zarqon will also enjoy it if you fix this bug.
 

heeheehee

Developer
Staff member
Lalala,
> ash appearance_rates($location[typical tavern])
Returned: aggregate float [monster]
Drunken Rat => 100.0
none => -1.0

Technically, Mafia only recognizes the pre-quest tavern. =P
 

Bale

Minion
Then it just doesn't set last adventuring location for the pre-quest Tavern. I guess.
 

heeheehee

Developer
Staff member
Bug report time! (Incidentally, I think I stumbled across this when doing some looping with my profit_fx, which was telling me that the Tavern was one of the most profitable locations available. Silly rats and their appendices...)

Edit: Oh wait, this is a bug report. Silly me.
 

Veracity

Developer
Staff member
Revision 8289 adds "Tavern Cellar" as the adventuring location for the pre-quest Tavern.

You can't use it to autoadventure; it's like the Hidden City, but worse: not only are there 25 different squares you COULD adventure in, but once you complete the quest, it's closed. But this fix should allow you to detect when you fighting rats, at least.
 
Top