Comment improvements
This commit is contained in:
parent
16cb48ad70
commit
d564a7a992
@ -899,10 +899,12 @@ export class HideoutController
|
|||||||
craftingExpAmount += this.hideoutConfig.expCraftAmount; // Default is 10
|
craftingExpAmount += this.hideoutConfig.expCraftAmount; // Default is 10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update variable with time spent crafting item(s)
|
||||||
// 1 point per 8 hours of crafting
|
// 1 point per 8 hours of crafting
|
||||||
hoursCrafting += recipe.productionTime;
|
hoursCrafting += recipe.productionTime;
|
||||||
if ((hoursCrafting / this.hideoutConfig.hoursForSkillCrafting) >= 1)
|
if ((hoursCrafting / this.hideoutConfig.hoursForSkillCrafting) >= 1)
|
||||||
{
|
{
|
||||||
|
// Spent enough time crafting to get a bonus xp multipler
|
||||||
const multiplierCrafting = Math.floor(hoursCrafting / this.hideoutConfig.hoursForSkillCrafting);
|
const multiplierCrafting = Math.floor(hoursCrafting / this.hideoutConfig.hoursForSkillCrafting);
|
||||||
craftingExpAmount += 1 * multiplierCrafting;
|
craftingExpAmount += 1 * multiplierCrafting;
|
||||||
hoursCrafting -= this.hideoutConfig.hoursForSkillCrafting * multiplierCrafting;
|
hoursCrafting -= this.hideoutConfig.hoursForSkillCrafting * multiplierCrafting;
|
||||||
|
Loading…
Reference in New Issue
Block a user