Anusien / Town-Of-Us

An Among Us mod containing a bunch of roles
GNU General Public License v3.0
10 stars 6 forks source link

phantom being spawned randomly ended the game (0 crewmate issue?) #204

Open VirusTLNR opened 2 years ago

VirusTLNR commented 2 years ago

so weirdly, this happened before, and i thought i was being a dodo.. but it seems now its occuring again, and i can actually explain it with a picture that details what occured. image

so 1:- shifted into the executioner 2:- shifted into the executioner again (swapped them back) 3:- killed the executioners target... (the investigator).. so the executioner turned into the jester. 4:- called a meeting and SKIPPED, no one was voted out. 5:- at this point the phantom should spawn.. but none of the logs mention the phantom spawning (it used to...?) (line 40) "System.Console.WriteLine("Become Phantom - Phantom");".. pretty sure this writes to the log as well.. but dont quote me... something used to write this to the log https://github.com/Anusien/Town-Of-Us/blob/mainline/source/Patches/NeutralRoles/PhantomMod/SetPhantom.cs

anyway, as soon as the meeting ended, the game ended, no one was a winner (the winning W is missing from my summary)

for comparison.. on the left its working fine, on the right i was trying to show all the changes.. when the phantom broke it. image

I get the feeling the bug is due to all crewmates being dead when the phantom spawns... so this might be the bug with the phantom ending the game, but might be worth a check.

under normal circumstances, there will always be a crew alive... but... there could be a glitch, impostor, jester and arsonist.. and then the game may end for no reason due to this bug... (if im right about it being due to 0 crewmates).

VirusTLNR commented 2 years ago

tried again, but without the shifting.. still ends in a bugged loss for everyone. image

VirusTLNR commented 2 years ago

at least 1 crew alive when phantom spawns... and no bugged ending. image