Template:SpawningItemDescription: Difference between revisions

add additional conditionals for handling night thorn content.
(fix valleyLimit, change paragraph break)
(add additional conditionals for handling night thorn content.)
Line 1: Line 1:
<includeonly>{{#arraydefine:originalLocationsArray|{{{originalLocations|}}}}}{{#arraydefine:respawnLocationsArray|{{{respawnLocations|}}}}}'''{{PAGENAME}}''' is a spawning item that can be cleared to collect materials. {{#if:{{{originalLocations|}}}|Some appear by default at the beginning of the game in the {{#arrayprint: originalLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}.|}} {{#if:{{{respawnLocations|}}}|{{#switch:{{{dailyRespawnLimit|}}}
<includeonly>{{#arraydefine:originalLocationsArray|{{{originalLocations|}}}}}{{#arraydefine:respawnLocationsArray|{{{respawnLocations|}}}}}'''{{PAGENAME}}''' is a spawning item that can be cleared to collect materials. {{#if:{{{originalLocations|}}}|Some appear by default at the beginning of the game in the {{#arrayprint: originalLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}.|}} {{#if:{{{respawnLocations|}}}|{{#switch:{{{dailyRespawnLimit|}}}
|1=One will
|1=One will
|10=Ten will
|#default=A few may}} spawn daily {{#switch:{{{respawnLocations|}}}
|#default=A few may}} spawn daily {{#switch:{{{respawnLocations|}}}
|anywhere outdoors=anywhere outdoors in the Valley
|anywhere outdoors=anywhere outdoors in the Valley
|one Biome=in one unlocked Biome in the Valley
|Dazzle Beach=on [[Dazzle Beach]]
|Dazzle Beach=on [[Dazzle Beach]]
|#default=in the {{#arrayprint: respawnLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}}}{{#ifeq:{{{mustRespawnUntiled|}}}|yes|&nbsp;on untiled ground only.|&nbsp;on tiled or untiled ground.}}|}} {{#if:{{{biomeLimit|}}}|A maximum of {{{biomeLimit|}}} will spawn in each Biome.&nbsp;|}}{{#if:{{{valleyLimit|}}}|A maximum of {{{valleyLimit|}}} can be in the Village at one time. |They will persist until the player clears them. }}
|#default=in the {{#arrayprint: respawnLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}}}{{#ifeq:{{{mustRespawnUntiled|}}}|yes|&nbsp;on untiled ground only.|&nbsp;on tiled or untiled ground.}}|}} {{#if:{{{biomeLimit|}}}|A maximum of {{{biomeLimit|}}} will spawn in each Biome.&nbsp;|}}{{#if:{{{valleyLimit|}}}|A maximum of {{{valleyLimit|}}} can be in the Village at one time. |They will persist until the player clears them. }}
Line 8: Line 10:
They can be cleared by using the {{{requiredTool|}}}. When cleared, they yield {{{yield|}}}.</includeonly><noinclude>
They can be cleared by using the {{{requiredTool|}}}. When cleared, they yield {{{yield|}}}.</includeonly><noinclude>


Night Thorn<br>
{{SpawningItemDescription
|originalLocations=
|dailyRespawnLimit=10
|respawnLocations=one Biome
|mustRespawnUntiled=no
|requiredTool=primary interaction button
|yield=different items, depending on which Biome they spawned in
}}
<br>
<br>
<br>
Daily Respawn=1, Valley limit=3 (e.g. Green Reward Chest) - does not stick around<br>
Daily Respawn=1, Valley limit=3 (e.g. Green Reward Chest) - does not stick around<br>
moderator
26,702

edits