Feature - Implemented Track broken hippy stone

Bale

Minion
It would be convenient if mafia kept track of our hippy stone being broken.

It would have a default value of "". When we break it, hippyStoneBroken can be set to the current date. It would then be reset to "" if the character ascends or we reach the first day of an odd numbered month. (5/1, 7/1, 9/1, 11/1, 1/1, 3/1) That's why the preference keeps track of the date it was broken, so we can compare it to the current date and see if it has healed.

I want this because currently my logoutScript needs a list of characters in PvP to decide what to do for my rollover outfit. I'd like to generalize it to...


PHP:
if(get_property("hippyStoneBroken") != "")
	maximize("1.8 PvP Fights, .5 adv, .08 hobo power, -tie, switch disembodied hand", false);
else
	maximize("adv, -equip sugar shield, switch disembodied hand", false);

There are some other obvious uses though. I might want to set up automatic PvP for characters to make sure I don't miss any swagger.
 
I think
Code:
if(contains_text(visit_url("campground.php"),"smashstone.gif"))
is a valid workaround. However, I strongly support and endorse this request. Thanks, devs.
 
Last edited:
Mafia checks your campground when you log in and when you ascend, and could easily detect when you break your stone, so the value could simply be a boolean rather than a date.
 
Well that makes it simpler to implement.

PS. Right now my logoutScript is making the extra server hit as Weatherboy suggested. Thanks Weatherboy. I guess it's just one extra server hit a session. Not a big deal even if I'd rather not.
 
Last edited:
hippy_stone_broken() added in r10971. Internally tracking this and a few other things might be useful for saving some server hits with internal mafia functions.

Edit: 10972 makes it return the correct result.
 
Last edited:
Back
Top