Posts: 233
Threads: 30
Joined: Jun 2016
BYOND Username: Prichard
03-07-2017, 05:31 PM
(This post was last modified: 03-08-2017, 07:45 PM by Prichard. Edited 1 time in total.)
To recreate:
1: Make teporone
Effect:
Teporone is supposed to increase body temperature by 10 degree increments when too cold, and decrease by 10 degrees when too warm
This does not happen. Instead, it will always set your body temperature to normal body temperature every life cycle.
This is due to a mistake in the code where max should say min, and min should say max.
Posts: 663
Threads: 50
Joined: Jan 2017
BYOND Username: Sovexe
03-08-2017, 10:40 AM
(This post was last modified: 03-08-2017, 11:16 AM by Sov. Edited 4 times in total.)
Actually I believe that if you swap min max its still bugged. If youre cold it would make you even colder, and if youre hot it would make you 10C hotter every life cycle
Ex:
Where current Body temperature = 0 and base = 20
Min(20, 0 -10)
makes you -10C chilling you
Where Bt= 500 base= 20
Max(20,500+10)
Makes you 510, 10 degrees hotter.
So the correct code would be
Min(Base, current+10) to warm by 10c
And
Max(base, current -10) to chill by 10c
Edit: actually for the chilling part you dont even need the max statement since it only ever starts over 311. It could just be a simple current-10 saving us a few fractions of a millisecond. After all it will never chill you past ~302 so checking to ensure it never cools you below the base temp of 20 is pointless
Posts: 2,022
Threads: 68
Joined: Jun 2016
BYOND Username: NateTheSquid
Character Name: Nathan Dunkleman
Posts: 233
Threads: 30
Joined: Jun 2016
BYOND Username: Prichard
(03-08-2017, 01:07 PM)NateTheSquid Wrote: this gives me an idea
Until they fix it, you can make your body temperature the base body temperature every life cycle. Abuse while you can
Posts: 2,045
Threads: 65
Joined: Nov 2014
BYOND Username: Zewaka
Character Name: Shitty Bill Jr.