1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

When you are buying a mine it should be placed in your inventory - Annoying

Discussion in 'Suggestions & Ideas' started by Verzuvius, Feb 5, 2015.

Mods: Rainbows
  1. Verzuvius

    Verzuvius Shark Slayer

    Messages:
    545
    Title says everything.
     
  2. SirDangalang

    SirDangalang Lvl. 128 MissingNo. Donator

    Messages:
    235
    Makes sense. Why is it not placed in one's inventory anyway? Is it because it is classified as an object as opposed to a consumable?

    For example do boulders and mines share these same characteristics?
    (As they both do not immediately enter inventory on purchase if space is available)
     
  3. Fernegulus

    Fernegulus Bison Rider

    Messages:
    400
    Inventory is really done very crappy, let's face it. Fixing it would need a recode imo.
     
  4. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Done for next build.
     
  5. Fuzzle

    Fuzzle Grand Grumbler

    Messages:
    297
    Naww .. Mines can't be thrown with key_use from the inventory! Newbies wouldn't know how to throw them. I suggest that if the hand is occupied the Mine goes into the inventory → in case you want to buy multiple Mines the first is attached to the hand ( if empty ) and thereafter sent into inventory.

    @Shop.as
    Code:
    ...
    if(blobName == "mine") {
        CBlob@ carried = caller.getCarriedBlob();
        if(carried is null) {
            caller.server_Pickup(blob);
            needspickup = false;
        } else if(!callerInv.isFull()) {
            caller.server_PutInInventory(blob);
            needspickup = false;
        }
    }
    ...
    



     

    Attached Files:

    • Shop.as
      File size:
      10.5 KB
      Views:
      75
    Last edited: Feb 6, 2015
    Verzuvius and Snake19 like this.
  6. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Didn't use the above as it's a hack and I'd really like to avoid more and more "special behaviour" accumulating, but we might need it - we'll see if we have any issues with people being unaware of how to use mines or the like, and might refactor the action3 code a little to be able to grab mines into your hand as any class (which I think will be the main issue).
     
    Fuzzle and Verzuvius like this.
  7. Apronymous

    Apronymous Bison Rider

    Messages:
    326
    Did Fuzzle edit a shit ton of crap into that post?
    Could'a sworn it was just those first two lines of text earlier.
     
  8. Verzuvius

    Verzuvius Shark Slayer

    Messages:
    545
    Yes he did.
     
    Apronymous likes this.
Mods: Rainbows