Vgstation13: Rocknuts force and throwforce isn't scaling at all

Created on 18 Feb 2020  路  7Comments  路  Source: vgstation-coders/vgstation13

what the title says. whichever idiot coded them fucked something up.

Bug / Fix Thanks old coders

Most helpful comment

The rocknut fanbase is dying, hit the like button if you're truly rock hard

All 7 comments

For some fucking reason, the code that sets the thing's potency in New() is spawn()ed off and doesn't happen until after the code that should set the throwforce based on it has already executed

is it in initialize()?
that鈥檚 where the rest of the grown food has its forces defined based on thorniness and etc. What I might do is put a conditional in initialize to check if the src is a rocknut and use the potency scaling formula instead if true.

  1. The rocknut does it in New() instead
  2. Never ever do typechecks on src

The rocknut fanbase is dying, hit the like button if you're truly rock hard

yeah I know there鈥檚 a throwforce define in its New(), the problem is it鈥檚 being called too late right? wouldn鈥檛 the solution be to place the check in initialize()? I wouldn鈥檛 be type checking since that is a big no no, I鈥檇 be overwriting initialize for rocknuts specifically and so on and so forth

Again, initialize() is spawned off, so putting it in a child would not work
I'd just remove the spawn() from the parent but maybe it's there for a reason

Do it, remove it and let's see what happens.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

despotate picture despotate  路  3Comments

D3athrow-Issues picture D3athrow-Issues  路  3Comments

DamianX picture DamianX  路  3Comments

SonixApache picture SonixApache  路  3Comments

D3athrow-Issues picture D3athrow-Issues  路  3Comments