:trigger_sprinkler_craft
  js Variables.viktorToolBeingUpgraded = 'sprinkler';

  Viktor "Alright. It'll take me a day to craft this. Don't forget to come pick it up tomorrow."
  switch viktorIsUpgradingTool ON
  js Variables.viktorDaysToComplete = 1;
  + Variables.viktorToolUpgradeEvent = 'sprinkler_craft_complete';

:trigger_super_sprinkler_craft
  js Variables.viktorToolBeingUpgraded = 'super-sprinkler';

  Viktor "Alright. It'll take me a day to craft this. Don't forget to come pick it up tomorrow."
  switch viktorIsUpgradingTool ON
  js Variables.viktorDaysToComplete = 1;
  + Variables.viktorToolUpgradeEvent = 'super_sprinkler_craft_complete';

:sprinkler_craft_complete
  Viktor "Hey <name>, your sprinkler is ready! Here you go."
  
  wait 10
  js Variables.sprinklersMade += 1;
  if !Managers.Items.tryPickItemId('sprinkler') 
    Viktor "Oh, you can't carry it with you right now? No problem, I'll send it to your farm then. Check your mailbox when you get there."
    js Managers.Items.mailboxContainer.gainItemId('sprinkler');
  end

  wait 5
  switch viktorIsUpgradingTool OFF

:super_sprinkler_craft_complete
  Viktor "Hey <name>, your super sprinkler is ready! Here you go."
  
  wait 10
  js Variables.sprinklersMade += 1;
  if !Managers.Items.tryPickItemId('super-sprinkler') 
    Viktor "Oh, you can't carry it with you right now? No problem, I'll send it to your farm then. Check your mailbox when you get there."
    js Managers.Items.mailboxContainer.gainItemId('super-sprinkler');
  end

  wait 5
  switch viktorIsUpgradingTool OFF

:viktor_start_bell_craft
  Viktor "Alright. It'll take me a day to craft this. Don't forget to come pick it up tomorrow."
  switch viktorIsUpgradingTool ON
  js Variables.viktorDaysToComplete = 1;
  + Variables.viktorToolUpgradeEvent = Variables.viktorToolBeingUpgraded.replace('-', '_') + '_craft_complete';

:bell_craft_complete
  # Before calling this event, set the bell itemId on Variables.upgradedToolId
  Viktor "Hey <name>, your new bell is ready! Here you go."
  
  wait 10
  if !Managers.Items.tryPickItemId(Variables.upgradedToolId) 
    Viktor "Oh, you can't carry it with you right now? No problem, I'll send it to your farm then. Check your mailbox when you get there."
    js Managers.Items.mailboxContainer.gainItemId(Variables.upgradedToolId);
  end

  wait 5
  switch viktorIsUpgradingTool OFF

:trigger_wooden_bell_craft
  js Variables.viktorToolBeingUpgraded = 'wooden-bell';
  include viktor_start_bell_craft

:wooden_bell_craft_complete
  js Variables.upgradedToolId = 'wooden-bell';
  include bell_craft_complete

:trigger_iron_bell_craft
  js Variables.viktorToolBeingUpgraded = 'iron-bell';
  include viktor_start_bell_craft

:iron_bell_craft_complete
  js Variables.upgradedToolId = 'iron-bell';
  include bell_craft_complete


