alignment, comments

This commit is contained in:
Anuken
2023-10-31 12:38:55 -04:00
parent e1ffce2fd8
commit 5fe4b9a36c

View File

@ -711,6 +711,7 @@ public class TypeIO{
} }
public static void writeStatus(Writes write, StatusEntry entry){ public static void writeStatus(Writes write, StatusEntry entry){
//dynamic effects have the high bit of ID set to 1
write.s(entry.effect.id | (entry.effect.dynamic ? 1 << 15 : 0)); write.s(entry.effect.id | (entry.effect.dynamic ? 1 << 15 : 0));
write.f(entry.time); write.f(entry.time);
@ -743,6 +744,7 @@ public class TypeIO{
StatusEntry result = new StatusEntry(); StatusEntry result = new StatusEntry();
//check if it's dynamic (high bit set to 1), remove it, read multipliers
if((id & (1 << 15)) != 0){ if((id & (1 << 15)) != 0){
//it's a dynamic effect //it's a dynamic effect
id ^= (1 << 15); id ^= (1 << 15);