|
|
@ -22,6 +22,7 @@ import CowImg from './../../../assets/img/cow.svg'
|
|
|
|
import HayImg from './../../../assets/img/hay.svg'
|
|
|
|
import HayImg from './../../../assets/img/hay.svg'
|
|
|
|
import WheatImg from './../../../assets/img/wheat.svg'
|
|
|
|
import WheatImg from './../../../assets/img/wheat.svg'
|
|
|
|
import TractorImg from './../../../assets/img/tractor-icon.svg'
|
|
|
|
import TractorImg from './../../../assets/img/tractor-icon.svg'
|
|
|
|
|
|
|
|
import CakeImg from './../../../assets/img/cake.svg'
|
|
|
|
import TractorFullImg from './../../../assets/img/tractor-with-spikes.svg'
|
|
|
|
import TractorFullImg from './../../../assets/img/tractor-with-spikes.svg'
|
|
|
|
import HarvesterImg from './../../../assets/img/harvester.svg'
|
|
|
|
import HarvesterImg from './../../../assets/img/harvester.svg'
|
|
|
|
import VolcanoImg from './../../../assets/img/volcano2.gif'
|
|
|
|
import VolcanoImg from './../../../assets/img/volcano2.gif'
|
|
|
@ -50,17 +51,17 @@ import { buy, roll, endTurn, loan, trade, submitTradeAccept,
|
|
|
|
|
|
|
|
|
|
|
|
function netWorth(player) {
|
|
|
|
function netWorth(player) {
|
|
|
|
return ((player.assets.hay + player.assets.grain) * 2000) +
|
|
|
|
return ((player.assets.hay + player.assets.grain) * 2000) +
|
|
|
|
(player.assets.fruit * 5000) +
|
|
|
|
(player.assets.fruit * 5000) +
|
|
|
|
(player.assets.cows * 500) +
|
|
|
|
(player.assets.cows * 500) +
|
|
|
|
((player.assets.harvester + player.assets.tractor) * 10000) +
|
|
|
|
((player.assets.harvester + player.assets.tractor) * 10000) +
|
|
|
|
player.displayCash - player.debt;
|
|
|
|
player.displayCash - player.debt;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function assetsValue(player) {
|
|
|
|
function assetsValue(player) {
|
|
|
|
return ((player.assets.hay + player.assets.grain) * 2000) +
|
|
|
|
return ((player.assets.hay + player.assets.grain) * 2000) +
|
|
|
|
(player.assets.fruit * 5000) +
|
|
|
|
(player.assets.fruit * 5000) +
|
|
|
|
(player.assets.cows * 500) +
|
|
|
|
(player.assets.cows * 500) +
|
|
|
|
((player.assets.harvester + player.assets.tractor) * 10000);
|
|
|
|
((player.assets.harvester + player.assets.tractor) * 10000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getElementValue(id) {
|
|
|
|
function getElementValue(id) {
|
|
|
@ -282,6 +283,10 @@ class PlayerResources extends React.Component {
|
|
|
|
<ResourceUnit img={TractorImg} h='240' s='100' label='Tractors'
|
|
|
|
<ResourceUnit img={TractorImg} h='240' s='100' label='Tractors'
|
|
|
|
amount={player.assets.tractor}>
|
|
|
|
amount={player.assets.tractor}>
|
|
|
|
{player.assets.tractor}
|
|
|
|
{player.assets.tractor}
|
|
|
|
|
|
|
|
</ResourceUnit> {' '}
|
|
|
|
|
|
|
|
<ResourceUnit img={CakeImg} h='240' s='100' label='Birthday'
|
|
|
|
|
|
|
|
amount={player.assets.birthday ? player.assets.birthday : 0}>
|
|
|
|
|
|
|
|
{player.assets.birthday ? player.assets.birthday : 0}
|
|
|
|
</ResourceUnit>
|
|
|
|
</ResourceUnit>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -885,7 +890,7 @@ class Misc extends React.Component {
|
|
|
|
<img src={VolcanoImg} /> Copyright <a href="https://thenounproject.com/Maludk/">Laymik</a> with modifications by Thomas Hintz - <CCBY />
|
|
|
|
<img src={VolcanoImg} /> Copyright <a href="https://thenounproject.com/Maludk/">Laymik</a> with modifications by Thomas Hintz - <CCBY />
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<img src={CornImg} /> <img src={FruitImg} /> Copyright <a href='https://madexmade.com/'>Made</a> - <CCBY />
|
|
|
|
<img src={CornImg} /> <img src={FruitImg} /> <img src={CakeImg} /> Copyright <a href='https://madexmade.com/'>Made</a> - <CCBY />
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<img src={CowImg} /> Copyright <a href='https://thenounproject.com/rivercon/'>rivercon</a> - <CCBY />
|
|
|
|
<img src={CowImg} /> Copyright <a href='https://thenounproject.com/rivercon/'>rivercon</a> - <CCBY />
|
|
|
|