Skip to content

Commit

Permalink
Nothing to see here
Browse files Browse the repository at this point in the history
  • Loading branch information
Tynarus committed Apr 20, 2021
1 parent 8f5847a commit 7ff0593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game-engine/world/actor/player/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ export class Player extends Actor {
let showInConsole = false;
if(typeof options === 'boolean') {
showDialogue = true;
} else {
} else if(options) {
showDialogue = options.dialogue || false;
showInConsole = options.console || false;
}
Expand Down
5 changes: 3 additions & 2 deletions src/plugins/skills/woodcutting/woodcutting.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import { randomBetween } from '@engine/util/num';
import { colorText } from '@engine/util/strings';
import { colors } from '@engine/util/colors';
import { rollBirdsNestType } from '@engine/world/skill-util/harvest-roll';
import { cache, world } from '@engine/game-server';
import { world } from '@engine/game-server';
import { soundIds } from '@engine/world/config/sound-ids';
import { Axe, getAxe, HarvestTool } from '@engine/world/config/harvest-tool';
import { TaskExecutor } from '@engine/world/action';
import { findItem } from '@engine/config';


const canActivate = (task: TaskExecutor<ObjectInteractionAction>, taskIteration: number): boolean => {
Expand Down Expand Up @@ -77,7 +78,7 @@ const activate = (task: TaskExecutor<ObjectInteractionAction>, taskIteration: nu

const percentNeeded = tree.baseChance + toolLevel + actor.skills.woodcutting.level;
if(successChance <= percentNeeded) {
const targetName: string = cache.itemDefinitions.get(tree.itemId).name.toLowerCase();
const targetName: string = findItem(tree.itemId).name.toLowerCase();

if(actor.inventory.hasSpace()) {
const itemToAdd = tree.itemId;
Expand Down

0 comments on commit 7ff0593

Please sign in to comment.