# Farming of buildings

Before starting to play, the player needs to purchase an NFT gangster or booster for NFT tokens and a minimum number of ST tokens on the marketplace or exchange.

When connecting the wallet to the game, the system checks for the minimum number of tokens required to capture at least 1 business and the presence of at least 1 gangster. The price for buildings varies depending on the area, but with a fixed cost. Before the game starts, all buildings are free and it is not difficult to capture them. Buildings are multipliers of profitability. In order to start farming income, you need to upload tokens through your wallet to the captured business. After that, the player begins to receive income from this building in ST tokens.

![](https://2065275007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHwajuuvH2byglNxXqtcy%2Fuploads%2FLS8xhWzlhMgRK5hM2LHM%2Fphoto_2022-05-25_14-17-50.jpeg?alt=media\&token=957a89a6-dcd3-4ff9-aa8e-741e29610353)

But also, this building can be captured by another player. Player arranges a battle for capturing a business. If your gang is strong enough, then you can easily repel the blow. But if the gangsters of the opposing player turned out to be stronger, then the Business comes under their control.

The winning player uploads tokens to the smart contract and they are credited to the losing side. Thus, the former owner does not lose tokens, and what he managed to accumulate is his profit.

![](https://lh5.googleusercontent.com/xrgzRMtAAfgqkQGxwj0p1kYn9tv9BpWv5_OmwT_TPS87QB_yLIQqurI2gZvKyCQGo3lZEswwKHVoOgQiYODe5FS0GJxa9kY5IFDc_wzEnOj6-PctWwrO4KTukOhXh4OT_57jmS5f)

### How it works technically.&#x20;

For a smart contract, businesses are appointments and account IDs (of the current owner), and since this is a real estate-based game: then we have an old owner (YOU or your opponent) who took over the business earlier, and a new owner who wants to take over it now.&#x20;

If the gangsters of the new owner turn out to be stronger in the battle, then old\_owner is replaced by the account of the new owner, then rewards in the form of ST tokens in the equivalent of the business value are sent to the old owner, charging the new one in the form of the value of the captured business.&#x20;

The timestamps for rewards are reset and the countdown starts again from zero, one less for the old owner and one more for the new one. The player can capture other free and busy businesses. He needs to win back the occupied businesses by conducting a battle with the opposing group, and if he wins, he needs to load the ST tokens available on his wallet into this business, equal to its value. After that, the token is farmed immediately.

The higher the level of profitability of your designated gangster, the higher the income from this business! To simplify it, player 1 occupies a building, pays 20 coins and farms income from it in the form of accruing coins over the building until other players have knocked it out. In this case, when a new player wins, tokens are credited to the smart contract wallet and the old owner is refunded his bet plus the% that he managed to save for the game.&#x20;

And the new owner begins to farm this building until another player comes with his gangsters and claims the rights to this business by force. What it gives - forces players to at least put a strong defense - so as not to immediately lose the conquered territory. Secondly, in order to capture a new player's business, you need to kill the guards, which means it makes sense to buy and upgrade an NFT gangster with higher skills.
