Bug - Fixed The Temporal Bandit's appearance_rate is wack in Battlefield (No Uniform)

zarqon

Well-known member
The appearance rate of The Temporal Bandit, as given by appearance_rates($location[Battlefield (No Uniform)]), is probably infinity. I say probably because it prints to the CLI as a box, which I can only guess is meant to be the character for infinity. If I print it to a page using ZLib's rnum(), it prints 0.

Regardless, it's a small obstacle in my factoids script, since I'm checking rate < 0 to filter out ultrarares.

Unless... it's correct...?!?!?!?! INFINITE ULTRARARES! :p
 

Darzil

Developer
Hmm, I can see why it is occurring, if total weighting is zero, which it is in areas that only have special/ultrarare monsters, it'll end up at infinity. (edit : strictly it was trying to evaluate 0 x -1 / 0)

However, my suggested fix would include that all ultrarares should be reporting as 0, as reporting a negative appearance rate seems wrong to me. I guess we could plan to report -1 for ultrarares, as we do internally before converting to text.
 
Last edited:

zarqon

Well-known member
Please don't report them as 0. Presently we can differentiate ultrarares from all the other 0-rate monsters (semirare monsters, quest bosses, monsters that result from noncombats, etc) by looking for the negative rate.

A quick foreach location, monster, rate can show you that there are lots of monsters with 0, and if ultrarares also returned 0 they would disappear into the crowd:

Code:
The Dungeons of Doom: mimic: 0.0
The Dungeons of Doom: The Master of Thieves: -14.0
Video Game Level 2: Video Game Miniboss: 0.0
Video Game Level 3: Video Game Boss: 0.0
Video Game Level 3: Video Game Miniboss: 0.0
A Maze of Sewer Tunnels: C. H. U. M. chieftain: 0.0
Hobopolis Town Square: Hodgman, The Hoboverlord: 0.0
Burnbarrel Blvd.: Ol' Scratch: 0.0
Exposure Esplanade: Frosty: 0.0
The Heap: Oscus: 0.0
The Ancient Hobo Burial Ground: Zombo: 0.0
The Purple Light District: Chester: 0.0
The Slime Tube: Mother Slime: 0.0
Dreadsylvanian Woods: Falls-From-Sky: 0.0
Dreadsylvanian Woods: Great Wolf of the Air: 0.0
Dreadsylvanian Village: Mayor Ghost: 0.0
Dreadsylvanian Village: Zombie Homeowners' Association: 0.0
Dreadsylvanian Castle: Count Drunkula: 0.0
Dreadsylvanian Castle: The Unkillable Skeleton: 0.0
An Octopus's Garden: moister oyster: 0.0
Mer-kin Colosseum: Georgepaul, the Balldodger: 0.0
Mer-kin Colosseum: Johnringo, the Netdragger: 0.0
Mer-kin Colosseum: Ringogeorge, the Bladeswitcher: 0.0
The Sleazy Back Alley: Crazy Bastard: -12.5
The Haunted Billiards Room: hustled spectre: 0.0
The Haunted Billiards Room: Pooltergeist (Ultra-Rare): -50.0
The Haunted Gallery: ghost of Elizabeth Spookyraven: 0.0
The Haunted Gallery: knight (Snake): 0.0
The Haunted Gallery: knight (Wolf): 0.0
The Haunted Bathroom: Guy Made of Bees: 0.0
The Haunted Bedroom: cosmetics wraith: 0.0
The Haunted Bedroom: remains of a jilted mistress: 0.0
The Haunted Ballroom: ghastly organist: 0.0
The Haunted Boiler Room: Bram the Stoker: 0.0
The Haunted Laboratory: Stephen Spookyraven: 0.0
The Haunted Storage Room: full-length mirror: 0.0
The Hidden Apartment Building: ancient protector spirit: 0.0
The Hidden Hospital: ancient protector spirit: 0.0
The Hidden Office Building: ancient protector spirit: 0.0
The Hidden Bowling Alley: ancient protector spirit: 0.0
A Massive Ziggurat: Protector Spectre: 0.0
The Typical Tavern Cellar: Baron von Ratsworth: 0.0
The Spooky Forest: Baiowulf: -10.0
The Hidden Temple: Baa'baa'bu'ran: 0.0
The Hidden Temple: clan of cave bars: 0.0
Whitey's Grove: white elephant: 0.0
The Black Forest: blackberry bush: 0.0
The Old Landfill: Doctor Oh, the Junksprite Boss: 0.0
Guano Junction: screambat: 0.0
The Batrat and Ratbat Burrow: Batsnake: 0.0
The Batrat and Ratbat Burrow: screambat: 0.0
The Beanbat Chamber: screambat: 0.0
Battlefield (Cloaca Uniform): The Temporal Bandit: -31.666666666666668
Battlefield (Dyspepsi Uniform): The Temporal Bandit: -31.666666666666668
The Clumsiness Grove: The Bat in the Spats: 0.0
The Clumsiness Grove: The Thorax: 0.0
The Maelstrom of Lovers: The Terrible Pinch: 0.0
The Maelstrom of Lovers: Thug 1 and Thug 2: 0.0
The Glacier of Jerks: Mammon the Elephant: 0.0
The Glacier of Jerks: The Large-Bellied Snitch: 0.0
Shop Class: X-fingered Shop Teacher: 0.0
Chemistry Class: Mrs. K, the Chemistry Teacher: 0.0
Art Class: François Verte, Art Teacher: 0.0
The "Fun" House: The Clownlord Beelzebozo: 0.0
Pre-Cyrpt Cemetary: Snakeleton: 0.0
Post-Cyrpt Cemetary: Count Bakula: -12.5
Post-Cyrpt Cemetary: Skelter Butleton, the Butler Skeleton: 0.0
Post-Cyrpt Cemetary: Snakeleton: 0.0
Inside the Palindome: Dr. Awkward: 0.0
Cobb's Knob Kitchens: Knob Goblin Elite Guard Captain: 0.0
Cobb's Knob Treasury: infinite meat bug: -33.333333333333336
Cobb's Knob Treasury: Knob Goblin Embezzler: 0.0
Cobb's Knob Menagerie, Level 1: QuickBASIC Elemental: -33.333333333333336
Pandamonium Slums: Hypnotist of Hey Deze: -13.571428571428571
The Laugh Floor: Carbuncle Top: 0.0
The Laugh Floor: Larry of the Field of Signs: 0.0
The Laugh Floor: Victor the Insult Comic Hellhound: 0.0
The Defiled Nook: giant skeelton: 0.0
The Defiled Cranny: big swarm of ghuol whelps: 0.0
The Defiled Cranny: giant swarm of ghuol whelps: 0.0
The Defiled Cranny: huge ghuol: 0.0
The Defiled Alcove: conjoined zmombie: 0.0
The Defiled Niche: gargantulihc: 0.0
Frat House: The Frattlesnake: 0.0
The Battlefield (Frat Uniform): C.A.R.N.I.V.O.R.E. Operative: 0.0
The Battlefield (Frat Uniform): Glass of Orange Juice: 0.0
The Battlefield (Frat Uniform): Neil: 0.0
The Battlefield (Frat Uniform): Slow Talkin' Elliot: 0.0
The Battlefield (Frat Uniform): The Big Wisniewski: 0.0
The Battlefield (Frat Uniform): Zim Merman: 0.0
The Battlefield (Hippy Uniform): Brutus, the toga-clad lout: 0.0
The Battlefield (Hippy Uniform): Danglin' Chad: 0.0
The Battlefield (Hippy Uniform): Monty Basingstoke-Pratt, IV: 0.0
The Battlefield (Hippy Uniform): Next-generation Frat Boy: 0.0
The Battlefield (Hippy Uniform): The Man: 0.0
The Battlefield (Hippy Uniform): War Frat Streaker: 0.0
The Valley of Rof L'm Fao: Bad ASCII Art: 0.0
The Smut Orc Logging Camp: smut orc pervert: 0.0
A Mob of Zeppelin Protesters: The Nuge: -16.0
The Red Zeppelin: Ron "The Weasel" Copperhead: 0.0
The Red Zeppelin: The Red Fox: 0.0
Itznotyerzitz Mine: 7-Foot Dwarf Foreman: 0.0
Lair of the Ninja Snowmen: Frozen Solid Snake: 0.0
The Icy Peak: Knott Slanding: -17.0
The Castle in the Clouds in the Sky (Top Floor): Burning Snake of Fire: 0.0
The Hole in the Sky: The Snake With Like Ten Heads: 0.0
The Broodling Grounds: mother hellseal: 0.0
The Nemesis' Lair: Gorgolok, the Infernal Seal (Inner Sanctum): 0.0
The Nemesis' Lair: Lumpy, the Sinister Sauceblob (Inner Sanctum): 0.0
The Nemesis' Lair: Somerset Lopez, Dread Mariachi (Inner Sanctum): 0.0
The Nemesis' Lair: Spaghetti Elemental (Inner Sanctum): 0.0
The Nemesis' Lair: Spirit of New Wave (Inner Sanctum): 0.0
The Nemesis' Lair: Stella, the Turtle Poacher (Inner Sanctum): 0.0
The Spooky Gravy Burrow: Felonia, Queen of the Spooky Gravy Fairies: 0.0
Camp Logging Camp: Hockey Elemental: -20.0
The Corpse Bog: the ghost of Phil Bunion: 0.0
Swamp Beaver Territory: conservationist hippy: 0.0
The Weird Swamp Village: swamp skunk: 0.0
The Primordial Soup: Cyrus the Virus: 0.0
The Jungles of Ancient Loathing: giant bird-creature: 0.0
The Jungles of Ancient Loathing: giant jungle python: 0.0
The Jungles of Ancient Loathing: giant octopus: 0.0
The Jungles of Ancient Loathing: giant spider: 0.0
The Jungles of Ancient Loathing: high priest of Ki'rhuss: 0.0
The Jungles of Ancient Loathing: wumpus: 0.0
Professor Jacking's Small-O-Fier: jungle scabie: 0.0
Professor Jacking's Small-O-Fier: smooth jazz scabie: 0.0
Professor Jacking's Huge-A-Ma-tron: Fearsome Wacken: 0.0
Professor Jacking's Huge-A-Ma-tron: The Whole Kingdom: 0.0
Neckback Crick: unearthed monstrosity: 0.0
Trick-or-Treating: All-Hallow's Steve: 0.0
Elf Alley: Uncle Hobo: 0.0
The Don's Crimbo Compound: Don Crimbo: 0.0
Shivering Timbers: Underworld Tree: 0.0
The Spirit World: spirit alarm clock: 0.0
A Crater Full of Space Beasts: space beast matriarch: 0.0
The Cave Before Time: Adventurer echo: 0.0
Anger Man's Level: Anger Man: 0.0
Fear Man's Level: Fear Man: 0.0
Doubt Man's Level: Doubt Man: 0.0
Regret Man's Level: Regret Man: 0.0
The Nightmare Meatrealm: The Beefhemoth: 0.0
Chinatown Shops: yakuza courier: 0.0
Triad Factory: The Sierpinski brothers: 0.0
Chinatown Tenement: The Server: 0.0
Chinatown Tenement: White Bone Demon: 0.0
The Gourd!: Fnord the Unspeakable: 0.0
The Sunken Party Yacht: drownedbeat: 0.0
The Sunken Party Yacht: son of a son of a sailor: 0.0
The Sunken Party Yacht: taco fish: 0.0

If anything, more differentiation would be nice, i.e. 0 for monsters that occur normally in a choiceadv, -1 for quest monsters, -2 for semirare monsters, -3 for ultrarares, etc.

Edit: Aha, ninja'd by your update. Thanks very much!
 

lostcalpolydude

Developer
Staff member
I took too long typing my response, apparently. That fix probably does nothing for the War Hippy Spy and Orcish Frat Boy Spy, which are currently 0 x 0 / 0.
 
Top