aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/items.xml4
-rw-r--r--src/player.cpp8
-rw-r--r--xml/!town.xml1
-rw-r--r--xml/entities.xml2
4 files changed, 8 insertions, 7 deletions
diff --git a/config/items.xml b/config/items.xml
index 3601c18..7e3a1fb 100644
--- a/config/items.xml
+++ b/config/items.xml
@@ -17,8 +17,8 @@
<!--##########-->
<!-- WEAPONS -->
-<item name="Wood Sword" type="Sword" damage="3" maxStackSize="1" sound="assets/sounds/longSwing.wav" sprite="assets/items/SWORD_WOOD.png" />
-<item name="Hunters Bow" type="Bow" damage="2" maxStackSize="1" sprite="assets/items/bow.png"/>
+<item name="Wood Sword" type="Sword" damage="3" maxStackSize="1" sound="assets/sounds/longSwing.wav" sprite="assets/items/SWORD_WOOD.png" cooldown="250" />
+<item name="Hunters Bow" type="Bow" damage="2" maxStackSize="1" sprite="assets/items/bow.png" cooldown="600" />
<item name="Arrow" type="Arrow" damage="1" maxStackSize="99" sprite="assets/items/arrow_crude.png"/>
<!-- UTILITIES -->
diff --git a/src/player.cpp b/src/player.cpp
index 1908af4..d9a4a98 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -242,10 +242,10 @@ void PlayerSystem::receive(const UseItemEvent& uie)
}
}
- /*cool.store(false);
- std::thread([&](void) {
- std::this_thread::sleep_for(std::chrono::milliseconds(uie.item->cooldown));
+ cool.store(false);
+ std::thread([&](unsigned int ms) {
+ std::this_thread::sleep_for(std::chrono::milliseconds(ms));
cool.store(true);
- }).detach();*/
+ }, uie.item->cooldown).detach();
}
}
diff --git a/xml/!town.xml b/xml/!town.xml
index d256af9..c50932b 100644
--- a/xml/!town.xml
+++ b/xml/!town.xml
@@ -13,6 +13,7 @@
<structure type="1" position="300.0,100.0"/>
<structure inside="bobshouse.xml" type="1" position="10.0,100.0"/>
<skirl />
+ <skirl />
</World>
<Dialog name="Bob">
diff --git a/xml/entities.xml b/xml/entities.xml
index fb69086..60fe149 100644
--- a/xml/entities.xml
+++ b/xml/entities.xml
@@ -62,7 +62,7 @@
</frame>
</Sprite>
<Direction />
- <Health value="200" />
+ <Health value="500" />
<Solid />
<Physics />
<Name value="SKIRL" />