summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-04-03 20:19:38 -0400
committergumi <git@gumi.ca>2018-04-03 20:19:38 -0400
commit76ead48bbeab9581ba779b29ab53657ac06d05aa (patch)
tree2d06842c34b49b6f2d6e028da4c6e9f2fc7cc65c /world/map/npc
parent94e1d6a7f525fe79600919a03f897d9e8ce0b17d (diff)
downloadserverdata-76ead48bbeab9581ba779b29ab53657ac06d05aa.tar.gz
serverdata-76ead48bbeab9581ba779b29ab53657ac06d05aa.tar.bz2
serverdata-76ead48bbeab9581ba779b29ab53657ac06d05aa.tar.xz
serverdata-76ead48bbeab9581ba779b29ab53657ac06d05aa.zip
make shock white compatible with the headless hairstyles
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/functions/headstyles.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/world/map/npc/functions/headstyles.txt b/world/map/npc/functions/headstyles.txt
index 5369be34..f5f2ea82 100644
--- a/world/map/npc/functions/headstyles.txt
+++ b/world/map/npc/functions/headstyles.txt
@@ -10,7 +10,7 @@ function|script|fixHeadStyles
set @color, getlook(LOOK_HAIR_COLOR); // FIXME: this needs to be a param in the future
if (@style < 1 || @style > getarraysize(@HairStyles$)) // leftover from previous attempt at classes
setlook LOOK_HAIR_STYLE, 1; // FIXME: this needs to be a param in the future
- if (@color >= 123 && @color <= HC_WHITE) // convert shock white
+ if (@color >= 120 && @color <= HC_WHITE) // convert shock white
set @color, (HC_WHITE - Class) + 1;
if (@color < 105 && ((@color - (15 * (Class - 1))) < 0 || @color > ((15 * (Class - 1)) + (getarraysize(@HairColors$) - 1))))
set @color, 15 * (Class - 1); // it is possible to style color 0 but not style 0 since style is treated as an item