Results 1 to 3 of 3

Thread: Improve return value of get_clan_rumpus()

  1. #1
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,551

    Default Improve return value of get_clan_rumpus()

    Compare this:

    Code:
    > ash get_campground()
    
    Returned: aggregate int [item]
    Certificate of Participation => 1
    Dramatic™ range => 1
    Queue Du Coq cocktailcrafting kit => 1
    pagoda plans => 1
    clockwork maid => 1
    Discount Telescope Warehouse gift certificate => 1
    fancy beer label => 1
    spinning wheel => 1
    potted tea tree => 1
    haunted doghouse => 1
    Witchess Set => 1
    Source terminal => 1
    giant pilgrim hat => 1
    or this:

    Code:
    > ash get_clan_lounge()
    
    Returned: aggregate int [item]
    Clan pool table => 1
    Crimbough => 5
    Clan looking glass => 1
    deluxe fax machine => 1
    Clan shower => 1
    Olympic-sized Clan crate => 1
    Clan hot dog stand => 1
    Clan speakeasy => 1
    glass of "milk" => 1
    cup of "tea" => 1
    thermos of "whiskey" => 1
    Lucky Lindy => 1
    Bee's Knees => 1
    Sockdollager => 1
    Ish Kabibble => 1
    Hot Socks => 1
    Phonus Balonus => 1
    Flivver => 1
    Sloppy Jalopy => 1
    Clan Floundry => 1
    carpe => 32
    codpiece => 30
    troutsers => 41
    bass clarinet => 64
    fish hatchet => 34
    tunac => 48
    to this:

    Code:
    > ash get_clan_rumpus()
    
    Returned: aggregate string [7]
    0 => Infuriating Painting
    1 => Collection of Sports Memorabilia
    2 => Mr. Klaw "Skill" Crane Game
    3 => Old-Timey Radio
    4 => Wrestling Mat
    5 => Snack Machine
    6 => Awesome Ball Pit (10,000)
    Seems like it would be better like the others:

    Code:
    > ash get_clan_rumpus()
    
    Returned: aggregate int [string]
    Infuriating Painting => 1
    Collection of Sports Memorabiliag => 1
    Mr. Klaw "Skill" Crane Gameg => 1
    Old-Timey Radiog => 1
    Wrestling Matg => 1
    Snack Machineg => 1
    Awesome Ball Pit => 10000
    so that rather than having to iterate over the map and check the values, you could just use "contains" to check for a particular piece of furniture.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  2. #2
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,551

    Default

    Code:
    > ash get_clan_rumpus()
    
    Returned: aggregate int [string]
    Awesome Ball Pit => 10000
    Collection of Sports Memorabilia => 1
    Infuriating Painting => 1
    Mr. Klaw "Skill" Crane Game => 1
    Old-Timey Radio => 1
    Snack Machine => 1
    Wrestling Mat => 1
    
    > ash ( get_clan_rumpus() contains "Awesome Ball Pit" )
    
    Returned: true
    Yeah. Revision 17471.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  3. #3
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    Now I have to change my loginScript!

    It was kinda bitchy to work with before so I'm real happy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •