Explorar o código

Follow up to bdff641
* Adjusted the HP/SP skill requirements to a signed value to account for negative values.

aleos89 %!s(int64=9) %!d(string=hai) anos
pai
achega
2f8699bbcc
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/map/skill.h

+ 3 - 3
src/map/skill.h

@@ -116,9 +116,9 @@ enum e_skill_display {
 
 /// Single skill requirement. !TODO: Cleanup the variable types
 struct skill_condition {
-	uint32 hp;								 ///< HP cost
-	uint32 mhp;								 ///< Max HP to trigger
-	uint32 sp;								 /// SP cost
+	int32 hp;								 ///< HP cost
+	int32 mhp;								 ///< Max HP to trigger
+	int32 sp;								 /// SP cost
 	int16 hp_rate;							 /// HP cost (%)
 	int16 sp_rate;							 /// SP cost (%)
 	uint32 zeny;							 /// Zeny cost