Changes

Jump to navigation Jump to search
→‎New utility fields & methods: + new Dialogue and LocalizedContentManager methods
Line 512: Line 512:  
| <samp>Crop.replaceWithObjectOnFullGrown</samp>
 
| <samp>Crop.replaceWithObjectOnFullGrown</samp>
 
| If set, the qualified object ID to spawn on the crop's tile when it's full-grown. The crop will be removed when the object is spawned.
 
| If set, the qualified object ID to spawn on the crop's tile when it's full-grown. The crop will be removed when the object is spawned.
 +
|-
 +
| <samp>Dialogue.GetFallbackForError(npc)</samp><br /><samp>Dialogue.GetFallbackTextForError()</samp>
 +
| Get a translated default "..." dialogue, which is shown in cases where a valid dialogue couldn't be loaded.
 
|-
 
|-
 
| <samp>Event.TryResolveCommandName(…)</samp>
 
| <samp>Event.TryResolveCommandName(…)</samp>
Line 561: Line 564:  
| <samp>Item.CopyFieldsFrom(otherItem)</samp>
 
| <samp>Item.CopyFieldsFrom(otherItem)</samp>
 
| Copy all fields from another item into the current one. This is equivalent to <samp>item.getOne()</samp>, except that you update an existing item instead.
 
| Copy all fields from another item into the current one. This is equivalent to <samp>item.getOne()</samp>, except that you update an existing item instead.
 +
|-
 +
| <samp>LocalizedContentManager.LoadStringReturnNullIfNotFound(…)</samp>
 +
| This method already existed, but now has optional substitution arguments and an optional <samp>localeFallback</samp> argument.
 +
|-
 +
| <samp>LocalizedContentManager.LoadBaseStringOrNull(…)</samp>
 +
| Get the default English text for a translation path, or <samp>null</samp> if it's not found.
 
|-
 
|-
 
| <samp>Item.LearnRecipe()</samp>
 
| <samp>Item.LearnRecipe()</samp>
manager
8,549

edits

Navigation menu