grumpygamer / DeloresDev

Read all about it on GrumpyGamer:
https://grumpygamer.com/delores_dev
Other
872 stars 87 forks source link

Possible minor bug found, with initializing Actors #59

Open deckarep opened 1 year ago

deckarep commented 1 year ago

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.