import { Api } from './api';
import { playerOverview } from './sections/overview';
import $ from 'jquery';
-import {$exploreButton, $fightButton} from './dom';
+import {$exploreButton, $fightButton, disablePickItemButton} from './dom';
const api = new Api('http://localhost:9090');
api.increaseStat(stat);
});
+$('#take-world-drop').on('click', e => {
+ e.preventDefault();
+ e.stopPropagation();
+
+
+ const id = $(e.target).attr('data-drop-id');
+ if(id === 'unset' || id === undefined) {
+ return;
+ }
+
+ // lets pick this item up!
+ api.pickItem(id.toString());
+});
+
main();