mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 13:13:03 +00:00
Ok, the hair proc seems to be working now. Didn't runtime and the guy ended up with hair.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2485 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -226,12 +226,13 @@
|
|||||||
|
|
||||||
|
|
||||||
/// BEARDS
|
/// BEARDS
|
||||||
/*
|
|
||||||
var/beardnum = hex2num(getblock(structure,12,3))
|
var/beardnum = hex2num(getblock(structure,12,3))
|
||||||
var/list/facial_styles = typesof(/datum/sprite_accessory/facial_hair) - /datum/sprite_accessory/facial_hair
|
var/list/facial_styles = typesof(/datum/sprite_accessory/facial_hair) - /datum/sprite_accessory/facial_hair
|
||||||
var/fstyle = round(1 +(beardnum / 4096)*facial_styles.len)
|
var/fstyle = round(1 +(beardnum / 4096)*facial_styles.len)
|
||||||
|
|
||||||
var/datum/sprite_accessory/facial_hair/fhair = new facial_styles[fstyle]
|
var/fpath = text2path("[facial_styles[fstyle]]")
|
||||||
|
var/datum/sprite_accessory/facial_hair/fhair = new fpath
|
||||||
|
|
||||||
H.face_icon_state = fhair.icon_state
|
H.face_icon_state = fhair.icon_state
|
||||||
H.f_style = fhair.icon_state
|
H.f_style = fhair.icon_state
|
||||||
@@ -243,12 +244,13 @@
|
|||||||
var/list/styles = typesof(/datum/sprite_accessory/hair) - /datum/sprite_accessory/hair
|
var/list/styles = typesof(/datum/sprite_accessory/hair) - /datum/sprite_accessory/hair
|
||||||
var/style = round(1 +(hairnum / 4096)*styles.len)
|
var/style = round(1 +(hairnum / 4096)*styles.len)
|
||||||
|
|
||||||
var/datum/sprite_accessory/hair/hair = new styles[style]
|
var/hpath = text2path("[styles[style]]")
|
||||||
|
var/datum/sprite_accessory/hair/hair = new hpath
|
||||||
|
|
||||||
H.hair_icon_state = hair.icon_state
|
H.hair_icon_state = hair.icon_state
|
||||||
H.h_style = hair.icon_state
|
H.h_style = hair.icon_state
|
||||||
H.hair_style = hair
|
H.hair_style = hair
|
||||||
*/
|
|
||||||
H.update_face()
|
H.update_face()
|
||||||
H.update_body()
|
H.update_body()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user