KEMBAR78
NUVIE: Fix Ultima 6 spawn probability by PushmePullyu · Pull Request #4857 · scummvm/scummvm · GitHub
Skip to content

Conversation

@PushmePullyu
Copy link
Contributor

Change NPC and object spawn probability and count to match original behavior.

- Mark spawn eggs as unstackable.
- Normalize the random number used to be in the range 1 to 100
 inclusive to match original behavior.

Stackable objects store "quality" in the high octet of uint16 "qty".
Since "qty" is used as the probability of an egg activating,
spawns would always trigger unless "quality" was 0.
Match original behavior when randomizing the number of entities
spawned by eggs.
@dreammaster
Copy link
Member

Looks good to me. I'm impressed that you were able to notice it.

@dreammaster dreammaster merged commit 0543594 into scummvm:master Apr 1, 2023
@dreammaster
Copy link
Member

@PushmePullyu By that way. I've been very impressed with your work so far, and was wondering if you'd be interested in becoming an official team member and working on improving Nuvie directly. If so, at your convenience if you could join the #scummvm Discord channel and drop sev a line.

@PushmePullyu PushmePullyu deleted the fix-u6-spawn-eggs branch May 16, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants