Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Spacephobia returns #104

Conversation

Kyle2143
Copy link
Contributor

Makes the effect of spacePhobia more performant than what I've heard it's like in production code. Did some things to make it easier on myself and efficiency wise.

  • Picks a random tile within some radius given by the programmer and checks if it's a /turf/space. If it is OR if our radius is touching the map edge, then we trigger the effects.

  • Only works on the station z-level. Because I use hardcoded for the map size for that z-level (300x300). I think there might be a map.size or something where I could get those for any z-level, but I can't find it.

  • There is a tick counter so that it will only run the logic every X number of ticks. I have it set to run like each 4 or 5 times I think.

  • I increased the probability for a faint or scream emote. But that can change.

Kyle2143 and others added 4 commits November 23, 2018 00:51
…t. Now we only check for turfs if our radius is not touching a map edge.
…edges at all since proc/locate just returns null if the supplied coordinates are out of bounds.
@ZeWaka ZeWaka force-pushed the goonstation-2016-byond510 branch 2 times, most recently from 4bb3e79 to c317986 Compare March 6, 2019 07:08
@ZeWaka ZeWaka closed this May 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants