Line 167: |
Line 167: |
| | <tt>ForceAllowTreePlanting T</tt> | | | <tt>ForceAllowTreePlanting T</tt> |
| | Whether to allow planting trees (both wild and fruit) in this location, even if it normally wouldn't be allowed. | | | Whether to allow planting trees (both wild and fruit) in this location, even if it normally wouldn't be allowed. |
| + | |- |
| + | | ''any'' |
| + | | <tt>IsFarm T</tt> |
| + | | Whether to mark the location as a farm. This only affects generic location/interaction logic which checks the in-code <code>location.IsFarm</code> property; logic hardcoded into the game's <code>Farm</code> class (e.g. farm animals, pets, crows/scarecrows, greenhouse, farm buildings, etc) is still limited to the actual farm. |
| + | |- |
| + | | ''any'' |
| + | | <tt>IsGreenhouse T</tt> |
| + | | Whether to mark the location as a greenhouse. |
| |- | | |- |
| | farm | | | farm |
Line 179: |
Line 187: |
| | <tt>SpawnMountainFarmOreRect {{t|tile X}} {{t|tile Y}} {{t|tile width}} {{t|tile height}}</tt> | | | <tt>SpawnMountainFarmOreRect {{t|tile X}} {{t|tile Y}} {{t|tile width}} {{t|tile height}}</tt> |
| | The tile area on the farm map where ores should randomly spawn (like the [[Farm Maps|vanilla hilltop farm]]). Ores will only spawn on tiles which have the <tt>Type Dirt</tt> tile property and are clear for object placement. | | | The tile area on the farm map where ores should randomly spawn (like the [[Farm Maps|vanilla hilltop farm]]). Ores will only spawn on tiles which have the <tt>Type Dirt</tt> tile property and are clear for object placement. |
| + | |} |
| + | |
| + | And one new tile property: |
| + | |
| + | {| class="wikitable" |
| + | |- |
| + | ! layer |
| + | ! property |
| + | ! effect |
| + | |- |
| + | | <tt>Back</tt> |
| + | | <tt>TouchAction MagicWarp {{t|area}} {{t|x}} {{t|y}} {{o|string prerequisite}}</tt> |
| + | | Adds a player-only warp on the tile to the specified location name and position. This is exactly equivalent to <tt>TouchAction MagicWarp</tt>, but without the magic sound/visual effect. |
| |} | | |} |
| | | |
Line 210: |
Line 231: |
| | <tt>{{t|dialogue key}}Roommate</tt> | | | <tt>{{t|dialogue key}}Roommate</tt> |
| | Overrides a dialogue if the NPC is a roommate. For example, if Penny is a roommate and wants to show the <tt>Outdoor_Penny</tt> dialogue, the game will show <tt>Outdoor_PennyRoommate</tt> instead if it exists. | | | Overrides a dialogue if the NPC is a roommate. For example, if Penny is a roommate and wants to show the <tt>Outdoor_Penny</tt> dialogue, the game will show <tt>Outdoor_PennyRoommate</tt> instead if it exists. |
| + | |- |
| + | | <tt>Characters/Dialogue/*</tt> |
| + | | <tt>*_roommate_*</tt> |
| + | | Equivalent to the <tt>*_inlaw_*</tt> infix in [[Modding:Dialogue#Generic dialogue|generic dialogue]], used if you're a roommate with the NPC. If not defined, the game will check for the <tt>*_inlaw_*</tt> version instead. |
| |- | | |- |
| | <tt>Data/Festivals/*</tt> | | | <tt>Data/Festivals/*</tt> |
Line 218: |
Line 243: |
| <li>Added <tt>R</tt> to the [[Modding:Event data#Event preconditions|event preconditions]] which checks whether the local player has a roommate. This can be combined with <tt>O {{t|NPC name}}</tt> to check for a specific roommate, like <tt>R/O Abigail</tt>.</li> | | <li>Added <tt>R</tt> to the [[Modding:Event data#Event preconditions|event preconditions]] which checks whether the local player has a roommate. This can be combined with <tt>O {{t|NPC name}}</tt> to check for a specific roommate, like <tt>R/O Abigail</tt>.</li> |
| </ul> | | </ul> |
| + | |
| + | ===Custom scarecrows=== |
| + | You can now mark any placeable item as a [[scarecrow]] with two new [[Modding:Context tags|context tags]]: |
| + | |
| + | {| class="wikitable" |
| + | |- |
| + | ! context tag |
| + | ! effect |
| + | |- |
| + | | <tt>crow_scare</tt> |
| + | | Sets the item as a placeable scarecrow. If not set, the item is considered a scarecrow if its default name contains the substring <code>arecrow</code> (like before). |
| + | |- |
| + | | <tt>crow_scare_radius_{{t|radius}}</tt> |
| + | | If the item is a scarecrow, sets the radius that it covers. If not set, the scarecrow defaults to 17 if the default name contains the substring <code>Deluxe</code> and 9 otherwise. |
| + | |} |
| | | |
| ===Update impact=== | | ===Update impact=== |