This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"lastUpload":"2020-06-19T19:55:40.125Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function goOnline() | |
| { | |
| if($reconnectDropdown.hasClass("reconnectDropdown-waiting")) | |
| { | |
| $reconnectDropdown.removeClass("reconnectDropdown-down reconnectDropdown-down-2s reconnectDropdown-waiting").addClass("reconnectDropdown-up reconnectDropdown-up-5s"); | |
| $reconnectDropdown.find(".reconnectDropdown-content").text(i18n.message("session.connected")); | |
| } | |
| currentConnectionStatus = ConnectionStatus.ONLINE; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( !(itemTypes[type].display_item) && (slot = getFirstEmptySlot())){ //this is a BUG (could be no empty slots)// item is lost | |
| playerInventory[slot].amount = amount; | |
| playerInventory[slot].type = type; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void removeItem(int window, int amnt, BaseItemInstance* itemType){ | |
| StackableInstance* itemToDelete = tryType<StackableInstance>(itemType); | |
| int index = 0; | |
| for(int i = 0 ; i < craftingInvSz[window] && amnt > 0; i++) | |
| { | |
| if (itemToDelete) | |
| { | |
| StackableInstance* myStackable = tryType<StackableInstance>(craftingInventory[window][i].item); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum iType { | |
| ITEM_TYPE_ITEM=0, | |
| ITEM_TYPE_BLOCK=1, | |
| ITEM_TYPE_USABLE=2, | |
| ITEM_TYPE_AMMO=3, | |
| ITEM_TYPE_PLOT=4, | |
| ITEM_TYPE_ACCESSORY=5, | |
| ITEM_TYPE_KNIFE=6, | |
| ITEM_TYPE_PICK=7, | |
| ITEM_TYPE_SHVL=8, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "items.h" | |
| Item::Item(unsigned short id, std::string name, std::string description, unsigned short icon_pg, float icon_x, float icon_y, bool placeable, ItemQuality quality, unsigned short maxStackSize) : Stackable(id,name,description,icon_pg,icon_x,icon_y,placeable,quality,maxStackSize) | |
| { | |
| //Init Item Specific Attributes Here | |
| } | |
| ItemInstance::ItemInstance(unsigned short currentStackSize, Item* itemData) : StackableInstance(currentStackSize,itemData) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class EquippableEvent { | |
| protected: | |
| void (*_onEquip)(); | |
| void (*_onUnEquip)(); | |
| public: | |
| EquippableEvent(void (*_onEquipEvent)(),void (_onUnEquipEvent)()); | |
| void OnEquip(); | |
| void OnUnEquip(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "items.h" | |
| Item::Item(int id, int maxStack, std::string name, std::string description, int icon_pg, float icon_x, float icon_y, bool placeable, ItemQuality quality, int currentStackSize) : Stackable(id,maxStack,name,description,icon_pg,icon_x,icon_y,placeable,quality,currentStackSize) | |
| { | |
| //Init Item Specific Attributes Here | |
| } | |
| void ItemFactory::initItems() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef ITEMS_H | |
| #define ITEMS_H | |
| #include "stackable.h" | |
| class Item : public Stackable { | |
| public: | |
| Item::Item(int id, int maxStack, std::string name, std::string description, int icon_pg, float icon_x, float icon_y, bool placeable, ItemQuality quality, int currentStackSize); | |
| void Item::Test(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "baseItem.h" | |
| BaseItem::BaseItem(int id, int maxStack, std::string name, std::string description, int icon_pg, float icon_x, float icon_y, bool placable, ItemQuality quality) | |
| { | |
| this->id = id; | |
| this->maxStack = maxStack; | |
| this->name = name; | |
| this->description = description; | |
| this->icon_pg = icon_pg; | |
| this->icon_x = icon_x; |
NewerOlder