Author Topic: Game Discussion  (Read 115131 times)

0 Members and 59 Guests are viewing this topic.

  • Probably okay.
  • Admin
  • POST LORD
  • *****
  • Posts: 2,221
  • Dapperness +55/-55
  • It is what it is.
  • Location: England - Liverpool
    • View Profile
Re: Game Discussion
« Reply #615 on: June 19, 2016, 10:29:07 am »
I've ran into an issue that didn't seem to happen at first, using some repair kits, I don't think it's all of them, when it only has one use left doesn't seem to add a new, unused one, into your inventory like it should, it just removes it like it originally did. Using a repair kit with more than one use left adds an unused one into your inventory though.

What I can't work out is why this didn't happen at first, I've looked over the code and I really can't figure out what it is, although I'm fucking shitty with code so I'm probably being dumb and I've missed a number for an item somewhere, which is what I think it is, but I can't work out where or what one.

I've been up all night though so I'll take a look at it later, though I did find out someone did pretty much the exact same thing for the last version of Misery but the files don't seem to be available anymore, so I can't see how they did it.

EDIT: Nevermind I suddenly realised what it might have been and fixed it, I was forgetting to add in a reference for the last use repair kit, since there was no reference because there didn't need to be, the script removed any item from your inventory if it didn't find a reference for it. I could just remove the four lines of code that remove the items but I dunno if another bit of code checks for it, so I'd rather leave it and add the references.
« Last Edit: June 19, 2016, 10:58:06 am by Six »
Formerly SiegeLion

Sixposting INTENSIFIES
leather made from foreskin.
yeah, i'd punch an old lady.
Everything's gunpowder if you have enough oxidizer.
It can only mean the shenangularity.

 

NOCTIFER IS A FAGGOT