Farmhouse_Basement_Revised/ScienceHouse.cs
/// <summary>
/// Performs an action on a given tile. In this case catches the Carpenter action to inject custom code, and returns the base otherwise.
/// </summary>
/// <param name="action">What is the action that needs to be checked.</param>
/// <param name="who">Which Farmer initiated the action.</param>
/// <param name="tileLocation">Which tile is the action performed at?</param>
/// <returns></returns>
Performs an action on a given tile. In this case catches the Carpenter action to inject custom code, and returns the base otherwise.
Performs an action on a given tile . In this case catches the Carpenter action to inject custom code and returns the base otherwise .
public new bool performAction(string action, Farmer who, Location tileLocation) {
            if (action != null && who.IsLocalPlayer) {
                string[] actionParams = action.Split(' ');
                if (actionParams[0] == "Carpenter") {
                    if (who.getTileY() > tileLocation.Y)
                        carpenters(tileLocation);
                }
            }
            if (Game1.player.houseUpgradeLevel > 2 ) {
            }
            return base.performAction(action, who, tileLocation);
        }
public new bool performAction ( string action , Farmer who , Location tileLocation ) { if ( action != null && who . IsLocalPlayer ) { string [ ] actionParams = action . Split ( ' ' ) ; if ( actionParams [ 0 ] == " " ) { if ( who . getTileY ( ) > tileLocation . Y ) carpenters ( tileLocation ) ; } } if ( Game1 . player . houseUpgradeLevel > 2 ) { } return base . performAction ( action , who , tileLocation ) ; }
Performs an action on a given tile.
Performs an action on a given tile .
None
action
string
None
who
Farmer
Which Farmer initiated the action.
Which Farmer initiated the action .
tileLocation
Location
None