Issue with multiplying Gold

I have a plugin I'm working on, and I've hit a dead-end.

So I want to increase gold based on "difficulty". While I know I have everything else right, I'm kind of stumped on actually having it multiply to the enemies base gold amount.

Code:
  Game_Enemy.prototype.gold = function() {
    switch (diffSetting) {

      case 0:
        return this.enemy().gold * easyGold;
      break;

      case 1:
        return this.enemy().gold * normalGold;
      break;

      case 2:
        return this.enemy().gold * hardGold;
      break;

    }

  };

I thought this was the function on gold gained through enemies, that or I just did it wrong.

Cheers,
Bloodmorphed
Looks like the function itself is right.
However, it doesn't look like you defined easyGold or the rest anywhere within the function.
When you test the function, what happens exactly?
(I'd guess the game would crash, yes?)
Looks like the function itself is right.
However, it doesn't look like you defined easyGold or the rest anywhere within the function.
When you test the function, what happens exactly?
(I'd guess the game would crash, yes?)

It was all right, I just forgot to add the final (); lol! Herp Derp.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-multiplying-gold.80691/