Results 1 to 2 of 2

Thread: Absorb Capacity in gelatinous noob

  1. #1
    Junior Member
    Join Date
    Jun 2018
    Posts
    4

    Default Absorb Capacity in gelatinous noob

    Is there a variable that checks for the current amount of absorptions?
    Right now, what I do is just
    PHP Code:
    try
    {
    for 
    x from 1 upto 15 by 1
    {
     
    cli_execute("absorb" thingamabob);
    }
    }

    finally 
    {
    do_something();

    I want to replace the try/finally with an if statement checking the amount of absorptions I have left.

    Of course that isn't my real code, just a simplified version to tell you what i'm saying.

  2. #2
    Junior Member
    Join Date
    Jun 2018
    Posts
    4

    Default

    Nvm, just added an int called absorptions, and a boolean called at_max_absorptions.

    Changed the loop to:

    PHP Code:
    if (absorptions == 15)
    at_max_apsorptions true;

    if (!
    at_max_absorptions)
    {
    for 
    x from 1 upto 15 by 1
    {
    cli_execute("absorb" thingamabob);
    absorptions 1;
    }


Posting Permissions

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