Feature - Implemented Tracking of nanorhino-charge

ereinion

Member
So I posted a request for this to be displayed in the charpane in the chit-thread already, but learned that it wasn't tracked by mafia at all.

What I would like to see is the current charge of the nanorhino being stored by mafia, but if it takes a lot of effort to implement I can manage very well without this feature. It would just make it very slightly easier for me to keep track of my rhino while I collect the factoids from the blobs.
 

Darzil

Developer
Am looking at this. Will be a little while as I have to get into aftercore to see the buff html, as Boris doesn't use familiars, but that should be this morning.
 

Bale

Minion
In favor of this feature request actually being implemented, here's what the relevant message's html looks like:

Code:
<!--familiarmessage--><center><table><tr><td align=center valign=center><img src="/images/itemimages/nanorhino.gif" width=30 height=30></td><td valign=center>...'s nanobots disintegrate a nearby patch of dirt for materials to build more nanobots. Hey, wait a minute! The hole is filled with pirate treasure! Oh, it's gone. Oh well. At least ... is up to 3% charge now.</td></tr></table></center>

There are a whole bunch of possible messages, so the matcher will have to be reasonably flexible. According to the wiki...

wiki said:
At the end of combat (when not fully charged)
  • <Name>'s nanobots locate a stray dog, and quickly turn it into a gray atomic soup, which they use to construct more nanobots. He is now X% charged, and you are X% grossed out.
  • <Name>'s nanobots disassemble some of the local scenery to build more nanobots, bringing him up to X% charge. You should probably be careful not to fight anything near your commemorative plate collection.
  • <Name>'s nanobots disintegrate a nearby patch of dirt for materials to build more nanobots. Hey, wait a minute! The hole is filled with pirate treasure! Oh, it's gone. Oh well. At least <Name> is up to X% charge now.
  • <Name>'s nanobots break down some nearby rocks and dirt into their component atoms, and use them to build more nanobots. He is now X% charged, but watch out for the new hole in the ground.
  • <Name>'s nanobots disintegrate some of the local scenery to make more nanobots, bringing him up to X% charge. You know, if these nanobots went out of control for some reason, that could be a real problem. Eh, whatever.
  • <Name> disintegrates an approaching Jehovah's Witness, turning his matter into more nanobots, and increasing <Name>'s charge to X%. You start to give him a approving pat on the head, but think twice about actually touching him.
  • "Hey buddy, did you order a-- aaaagh!" You turn around to see a cloud of freshly-built nanobots hovering near an abandoned pizza and pizza-delivery uniform. <Name>, now up to X% charge, puts away his cellphone.
  • <Name>'s nanobots disassemble a nearby tree and build more nanobots out of the atoms, bringing him up to X% charge. Of course, since the nanobots are too small to see, it basically just looks like a tree disappeared and <Name> got a little bigger, but you can make some basic assumptions about what's going on.

I'd say that in a <!--familiarmessage--> for nanorhino.gif, match (\d+)% and it should be the current charge. If the charge is at 100% the image is nanorhinoc.gif and there is no charging message.

Edit: Oh. Didn't see Darzil's reply until after I looked up the information and wrote this post. Guess he doesn't really need it then.
 
Last edited:

Darzil

Developer
r13371 Added _nanorhinoCharge.

Seems to work for me (including calculation that seems to work in Haiku and Dis).

Edit - and r13372 adds it to Character Pane.
 
Last edited:

Crowther

Active member
I don't think I've ever recharged a nanorhino. I always thought of it as a skill disguised as a familiar. Like the hebo. Hmm. *checks the wiki* It just delevels. I don't think I'll ever bother recharging it, but it's nice to know support is there.
 
Top