Commit 3addbb3d authored by Matthew Odle's avatar Matthew Odle

more style updates

parent 12f92c6c
......@@ -5,7 +5,7 @@ export class Goods extends React.Component {
var building = this.props.building;
return (
<div className='goods'>
<span>Goods produced: </span>
<span>makes: </span>
<span>{building.goods.toString()}</span>
</div>
);
......
......@@ -5,7 +5,7 @@ export class Materials extends React.Component {
var building = this.props.building;
return (
<div className='materials'>
<span>Materials needed: </span>
<span>uses: </span>
<span>{building.materials.toString()}</span>
</div>
);
......
......@@ -4,6 +4,6 @@ export class Stock extends React.Component {
render(props) {
var item = this.props.item;
return <div>{item.name}:{item.count}</div>;
return <div>{item.name}: {item.count}</div>;
}
}
......@@ -290,7 +290,7 @@ export class Village extends React.Component {
checkVillagerWarmth = (villager) => {
const baseWarmthDecayRate = this.props.knobsAndLevers.baseWarmthDecayRate;
const clothingWarmthDecayReduction = this.props.knobsAndLevers.clothingWarmthDecayReduction;
villager.warmth -= villager.clothed ? Math.ceil(baseWarmthDecayRate / clothingWarmthDecayReduction) : baseWarmthDecayRate;
villager.warmth -= villager.clothed ? Math.ceil(baseWarmthDecayRate - clothingWarmthDecayReduction) : baseWarmthDecayRate;
// eslint-disable-next-line
villager.warmth < 0 ? villager.warmth = 0 : null;
this.consumeFirewoodIfNeeded(villager);
......
......@@ -51,7 +51,7 @@ button {
float: left;
}
.building {
width: 200px;
width: 150px;
margin-right: none;
margin-bottom: 1em;
border: 1px solid black;
......
......@@ -23,7 +23,7 @@ const knobsAndLevers = {
villagerClothed: true,
clothingDegradeRate: 1,
clothingWarmthDecayReduction: 2,
baseWarmthDecayRate: 2,
baseWarmthDecayRate: 3,
warmthReplenishThreshold: 10,
warmthPerFirewood: 80,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment