diasurgical / devilutionX

Diablo build for modern operating systems
Other
8.01k stars 786 forks source link

Set Seed selection #7367

Closed kphoenix137 closed 1 week ago

kphoenix137 commented 1 month ago

Adds a game creation option for setting the game seed.

No idea how to enable it in single player though.

Bonus: Fixes a bug where password setting screen just displays the description from the most recent screen displayed.

image

It auto populates a game seed at this time from time(nullptr), where the player can modify it as desired. They're restricted to the positive range of int32 to only select valid game seeds. Entered non-integers will simply produce an invalid result that uses a seed created with time(nullptr). Leaving the seed blank or entering -1 will also use time(nullptr).

/seedinfo now displays Game Seed.