Editing Cave spawning

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 146: Line 146:
 
# If we haven't spawned all necessary minimum amounts for objects of the set, then:
 
# If we haven't spawned all necessary minimum amounts for objects of the set, then:
 
## Pick an entry whose minimum amounts haven't been met yet. Prioritize the order in the sublevel configuration file.
 
## Pick an entry whose minimum amounts haven't been met yet. Prioritize the order in the sublevel configuration file.
## If the entry is of the "type" 0, and if we can spawn two of these without going over the entry's minimum amount:
+
## If the entry is of the spawn type 0, and if we can spawn two of these without going over the entry's minimum amount:
 
### Pick this one, returning 2 as the amount.
 
### Pick this one, returning 2 as the amount.
 
## Otherwise:
 
## Otherwise:
Line 152: Line 152:
 
# Otherwise, if there are entries in the set with any weight, then:
 
# Otherwise, if there are entries in the set with any weight, then:
 
## Pick an entry in the set using [[#Weighted distribution|weighted randomness]], using the weights of the entries in the set.
 
## Pick an entry in the set using [[#Weighted distribution|weighted randomness]], using the weights of the entries in the set.
## If the entry is of the "type" 0, pick this one, returning 2 as the amount.
+
## If the entry is of the spawn type 0, pick this one, returning 2 as the amount.
 
## Otherwise, pick this one, returning 1 as the amount.
 
## Otherwise, pick this one, returning 1 as the amount.
 
# Otherwise:
 
# Otherwise:

Please note that all contributions to Pikmin Technical Knowledge Base are considered to be released under the Creative Commons Attribution-ShareAlike (see Pikmin Technical Knowledge Base:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: