Commit 90a5bd1e authored by Matthew Odle's avatar Matthew Odle

fix bug where isClothed was never false

parent 3addbb3d
......@@ -3,7 +3,6 @@ import React from 'react';
import { Goods } from './goods';
import { Materials } from './materials';
import { Priority } from './priority';
import { AssignedVillagers } from './assigned-villagers';
export class Building extends React.Component {
......
......@@ -310,7 +310,9 @@ export class Village extends React.Component {
// eslint-disable-next-line
villager.clothingDurability > 0 ? villager.clothingDurability -= this.props.knobsAndLevers.clothingDegradeRate : null;
// eslint-disable-next-line
villager.clothingDurability <= 0 ? villager = this.getClothing(villager) : null;
villager.clothingDurability <= 0 ? villager.clothed = false : null;
// eslint-disable-next-line
villager.clothed ? null : this.getClothing(villager);
}
getFood = (villager) => {
......
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