ID:2747796
 
Resolved
Decreasing particles.count had no effect.
BYOND Version:514
Operating System:Windows 10 Enterprise 64-bit
Web Browser:Chrome 96.0.4664.93
Applies to:Dream Seeker
Status: Resolved (514.1572)

This issue has been resolved.
Descriptive Problem Summary:
Particles ignore any changes to their count var unless the new value is greater than the current one
Numbered Steps to Reproduce Problem:
1. Create a particle
2. Increase the count, notice number of particles increase
3. Lower count, notice number of particles unchanged
4. Set count to 0, notice number of particles still unchanged

Code Snippet (if applicable) to Reproduce Problem:
/particles/pink_pixel_demo
color = "#FF00FF"
count = 1
spawning = 1
lifespan = 10
gravity = list(0,1)

/obj/thing
particles = new/particles/pink_pixel_demo

proc/increase_count()
particles.count++

proc/reset_count()
particles.count = 1


Expected Results:
count limits the count of particles

Actual Results:
count only ever limits particles to its highest ever value

Does the problem occur:
Every time? Or how often?every time
In other games?yes
In other user accounts?yes
On other computers?yes

When does the problem NOT occur?

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)unknown

Workarounds:none

Ohh, interesting. I'll take a look into this.
Hey Lummox, just wanted to give some additional information.

It seems that moving away from the object emitting the particles and then moving again so that it's back into view causes your client to properly respect the new lowered count var's value.

It seems count is only ignored if you keep the emitting object on your screen the entire time
Lummox JR resolved issue with message:
Decreasing particles.count had no effect.