mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Fix for dna runtime spam in check_integrity()
Fix for eguns disappearing. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3254 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -16,6 +16,14 @@
|
|||||||
// determine DNA fragment from hairstyle
|
// determine DNA fragment from hairstyle
|
||||||
// :wtc:
|
// :wtc:
|
||||||
|
|
||||||
|
|
||||||
|
// If the character doesn't have initialized hairstyles / beardstyles, initialize it for them!
|
||||||
|
if(!character.hair_style)
|
||||||
|
character.hair_style = new/datum/sprite_accessory/hair/short
|
||||||
|
|
||||||
|
if(!character.facial_hair_style)
|
||||||
|
character.facial_hair_style = new/datum/sprite_accessory/facial_hair/shaved
|
||||||
|
|
||||||
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/hrange = round(4095 / styles.len)
|
var/hrange = round(4095 / styles.len)
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
else
|
else
|
||||||
power_supply = new(src)
|
power_supply = new(src)
|
||||||
power_supply.give(power_supply.maxcharge)
|
power_supply.give(power_supply.maxcharge)
|
||||||
modifystate = icon_state
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
@@ -40,7 +39,10 @@
|
|||||||
update_icon()
|
update_icon()
|
||||||
var/ratio = power_supply.charge / power_supply.maxcharge
|
var/ratio = power_supply.charge / power_supply.maxcharge
|
||||||
ratio = round(ratio, 0.25) * 100
|
ratio = round(ratio, 0.25) * 100
|
||||||
icon_state = text("[][]", modifystate, ratio)
|
if(modifystate)
|
||||||
|
icon_state = text("[][]", modifystate, ratio)
|
||||||
|
else
|
||||||
|
icon_state = text("[][]", initial(icon_state), ratio)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
charge_cost = 100 //How much energy is needed to fire.
|
charge_cost = 100 //How much energy is needed to fire.
|
||||||
projectile_type = "/obj/item/projectile/energy/electrode"
|
projectile_type = "/obj/item/projectile/energy/electrode"
|
||||||
origin_tech = "combat=3;magnets=2"
|
origin_tech = "combat=3;magnets=2"
|
||||||
|
modifystate = "energystun"
|
||||||
|
|
||||||
var
|
var
|
||||||
mode = 0 //0 = stun, 1 = kill
|
mode = 0 //0 = stun, 1 = kill
|
||||||
|
|||||||
Reference in New Issue
Block a user