public override void tryToReceiveActiveObject(Farmer who) { updateItemWanted(); if (who.ActiveObject != null && !who.ActiveObject.bigCraftable && who.ActiveObject.ParentSheetIndex == itemWantedIndex) { Game1.currentLocation.playSound("coin"); if (NetWorldState.checkAnywhereForWorldStateID("trashBear3")) { NetWorldState.addWorldStateIDEverywhere("trashBearDone"); } else if (NetWorldState.checkAnywhereForWorldStateID("trashBear2")) { NetWorldState.addWorldStateIDEverywhere("trashBear3"); } else if (NetWorldState.checkAnywhereForWorldStateID("trashBear1")) { NetWorldState.addWorldStateIDEverywhere("trashBear2"); } else { NetWorldState.addWorldStateIDEverywhere("trashBear1"); } eatEvent.Fire(itemWantedIndex); who.reduceActiveItemByOne(); } }
public static void fixBridge(GameLocation location) { if (!NetWorldState.checkAnywhereForWorldStateID("beachBridgeFixed")) { NetWorldState.addWorldStateIDEverywhere("beachBridgeFixed"); } location.updateMap(); int whichTileSheet = ((!location.name.Value.Contains("Market")) ? 1 : 2); location.setMapTile(58, 13, 301, "Buildings", null, whichTileSheet); location.setMapTile(59, 13, 301, "Buildings", null, whichTileSheet); location.setMapTile(60, 13, 301, "Buildings", null, whichTileSheet); location.setMapTile(61, 13, 301, "Buildings", null, whichTileSheet); location.setMapTile(58, 14, 336, "Back", null, whichTileSheet); location.setMapTile(59, 14, 336, "Back", null, whichTileSheet); location.setMapTile(60, 14, 336, "Back", null, whichTileSheet); location.setMapTile(61, 14, 336, "Back", null, whichTileSheet); }