Jump to content

Drainable Item UseDelta chart (make-shift chart)


kinyoshi

Recommended Posts

The use delta is the amount of uses that Drainable items have.

 

The formula is 1 divided by delta number = Number of uses. Thank you 7Roses :).

 

I will make a complete and better chart at some point.

Unless someone else wants to use a calculator or their head to make it for us.

 

1=1

 

.1 = 9         .2 = 5          .3 =           .4 =           .5 = 
.6 =            .7 =            .8 =            .9 =
.01 =        .02 = ALOT  .03 = 33    .04 = 24    .05 = 19       .06 = 16 
.07 = 14   .08 = 12       .09 = 11    .10 =         .11 =            .12 = 
.13 =        .14 =            .15 = 6      .16 =         .17 =            .18 = 
.19 =        .20 = 5         .21 =         .22 =         .23 =            .24 = 
.25 = 4      .26 =          .27 =          .28 =          .29 =        .30 = 
.31 =          .32 =          .33 =          .34 =          .35 =          .36 = 
.37 =          .38 =          .39 =          .40 =          .41 =          .42 = 
.43 =          .44 =          .45 =          .46 =          .47 =          .48 = 
.49 =          .50 =          .51 =          .52 =          .53 =          .54 = 
.55 =          .56 =          .57 =          .58 =          .59 =          .60 = 
.001 =        .002 =        .003 =         .004 =          .005 =          .006 = 
.007 =        .008 =        .009 =         .010 =          .011 =          .012 = 
.013 =        .014 =        .015 =         .016 =          .017 =          .018 = 
.019 =        .020 =        .021 =         .022 =          .023 =          .024 = 
.025 =        .026 =        .027 =         .028 =          .029 =          .030 = 
.031 =        .032 =        .033 =         .034 =          .035 =          .036 = 
.037 =        .038 =        .039 =         .040 =          .041 =          .042 = 
.043 =        .044 =        .045 =         .046 =          .047 =          .048 = 
.049 =        .050 =        .051 =         .052 =          .053 =          .054 = 
.055 =        .056 =        .057 =         .058 =          .059 =          .060 = 
Edited by kinyoshi
Link to comment
Share on other sites

nice kinyoshi, but isn't the delta just easy to calculate?

1/delta = amount of uses?

it seams there are some rounding errors as 1/0.1 should be 10 not 9 but for the rest it looks quite accurate.

 

So you're telling me I'm wasting my time testing each one in-game? I'm bad at math anyway, so testing individually is the only way I can do it.

Link to comment
Share on other sites

Forget that. InventoryItem:getUses() always returns 1 for some reason. getDelta(), however, will return the current amount of usage left(between 0.0 and 1.0). getUseDelta() will return the delta set in the items and recipes file. So to find the number of uses left for a given 'item', you need to do: math.floor(item:getDelta()/item:getUseDelta()). To find the number of uses for a full item, getDelta() can be replaced with 1.0.

Link to comment
Share on other sites

  • 6 months later...

I don't have an accurate answer but I'd say it depends. Some could be tied to a everyTenMinutes event, and even then it's up to the coder. You can call item:Use() n times in a loop if you want and each call will reduce the delta by UseDelta.

 

For some actions (like taking / pouring water) I think it's related to the action progress (which has its own time).

Link to comment
Share on other sites

If you want to make a chart like that, it's easy to do in Excel. I can give it a try if you want.

 

Edit: i can't attach a Excel file with this post :(. Maybe this dropbox link will work.

If i look at your chartkinyoshi, your values are different then what i have. What other values are used to calculate the number of uses ? I have a nack of wanting to know how things work and why :P.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...