DeloresDev icon indicating copy to clipboard operation
DeloresDev copied to clipboard

Possible minor bug found, with initializing Actors

Open deckarep opened this issue 3 years ago • 0 comments

https://github.com/grumpygamer/DeloresDev/blob/419ce5eb99a6a58e85a0030ae8d7023980535f20/Scripts/Helpers/ActorHelpers.dinky#L57

Hello, I don't think this was intended...but it looks like two global variables are created on these two lines called: min_use_dist and min_talk_dist.

Maybe the code should have been...

if ("min_use_dist" !in actor) actor.min_use_dist <- MIN_USE_DIST
if ("min_talk_dist" !in actor) actor.min_talk_dist <- MIN_TALK_DIST

I think they should be tacked onto the actor object and not global.

deckarep avatar Dec 30 '22 04:12 deckarep