Skip to content

Commit 05131fb

Browse files
committed
Спрайты орагов и одежды в руках и немного логики для обновления спрайтов в руках
1 parent 0aadff6 commit 05131fb

File tree

19 files changed

+146
-71
lines changed

19 files changed

+146
-71
lines changed

code/modules/mob/living/carbon/brain/brain_item.dm

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
/// TRUE giving to a user sci hud and active research scanner
2222
var/smart_mind = FALSE
2323

24-
/obj/item/organ/internal/brain/xeno
25-
name = "xenomorph brain"
26-
desc = "We barely understand the brains of terrestial animals. Who knows what we may find in the brain of such an advanced species?"
27-
icon_state = "brain-x"
28-
origin_tech = "biotech=6"
29-
mmi_icon = 'icons/mob/alien.dmi'
30-
mmi_icon_state = "AlienMMI"
31-
3224
/obj/item/organ/internal/brain/Destroy()
3325
QDEL_NULL(brainmob)
3426
return ..()
@@ -137,15 +129,6 @@
137129
/obj/item/organ/internal/brain/prepare_eat()
138130
return // Too important to eat.
139131

140-
/obj/item/organ/internal/brain/slime
141-
species_type = /datum/species/slime
142-
name = "slime core"
143-
desc = "A complex, organic knot of jelly and crystalline particles."
144-
icon = 'icons/mob/slimes.dmi'
145-
icon_state = "green slime extract"
146-
mmi_icon_state = "slime_mmi"
147-
parent_organ_zone = BODY_ZONE_CHEST
148-
149132
/obj/item/organ/internal/brain/golem
150133
name = "Runic mind"
151134
desc = "A tightly furled roll of paper, covered with indecipherable runes."

code/modules/surgery/organs/heart.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
var/beating = TRUE
88
dead_icon = "heart-off"
99
var/icon_base = "heart"
10+
var/item_base = "heart"
1011

1112

1213
/obj/item/organ/internal/heart/update_icon_state()
1314
if(beating)
1415
icon_state = "[icon_base]-on"
16+
item_state = "[item_base]-on"
1517
else
1618
icon_state = "[icon_base]-off"
19+
item_state = "[item_base]-off"
1720

1821

1922
/obj/item/organ/internal/heart/remove(mob/living/carbon/human/target, special = ORGAN_MANIPULATION_DEFAULT)

code/modules/surgery/organs/lungs.dm

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -309,60 +309,6 @@
309309
S.reagents.add_reagent("salbutamol", 5)
310310
return S
311311

312-
/obj/item/organ/internal/lungs/plasmaman
313-
name = "plasma filter"
314-
desc = "A spongy rib-shaped mass for filtering plasma from the air."
315-
icon = 'icons/obj/species_organs/plasmaman.dmi'
316-
icon_state = "lungs"
317-
318-
safe_oxygen_min = 0 //We don't breath this
319-
safe_toxins_min = 16 //We breathe THIS!
320-
safe_toxins_max = 0
321-
322-
/obj/item/organ/internal/lungs/vox
323-
name = "Vox lungs"
324-
desc = "They're filled with dust....wow."
325-
icon = 'icons/obj/species_organs/vox.dmi'
326-
icon_state = "lungs"
327-
328-
safe_oxygen_min = 0 //We don't breathe this
329-
safe_oxygen_max = 0.05 //This is toxic to us
330-
safe_nitro_min = 16 //We breathe THIS!
331-
oxy_damage_type = TOX //And it poisons us
332-
333-
/obj/item/organ/internal/lungs/drask
334-
icon = 'icons/obj/species_organs/drask.dmi'
335-
336-
cold_message = "an invigorating coldness"
337-
cold_level_1_damage = -COLD_GAS_DAMAGE_LEVEL_1 //They heal when the air is cold
338-
cold_level_2_damage = -COLD_GAS_DAMAGE_LEVEL_2
339-
cold_level_3_damage = -COLD_GAS_DAMAGE_LEVEL_3
340-
cold_damage_types = list(BRUTE = 0.5, BURN = 0.25)
341-
342-
var/cooling_start_temp = DRASK_LUNGS_COOLING_START_TEMP
343-
var/cooling_stop_temp = DRASK_LUNGS_COOLING_STOP_TEMP
344-
345-
/obj/item/organ/internal/lungs/drask/insert(mob/living/carbon/target, special = ORGAN_MANIPULATION_DEFAULT)
346-
. = ..()
347-
348-
if(!.)
349-
return FALSE
350-
351-
RegisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT, PROC_REF(regulate_temperature))
352-
353-
/obj/item/organ/internal/lungs/drask/proc/regulate_temperature(mob/living/source, datum/gas_mixture/environment)
354-
SIGNAL_HANDLER
355-
356-
if(source.stat == DEAD)
357-
return
358-
359-
if(owner.bodytemperature > cooling_start_temp && environment.temperature <= cooling_stop_temp)
360-
owner.adjust_bodytemperature(-5)
361-
362-
/obj/item/organ/internal/lungs/drask/remove(mob/living/user, special = ORGAN_MANIPULATION_DEFAULT)
363-
UnregisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT)
364-
return ..()
365-
366312
/obj/item/organ/internal/lungs/cybernetic
367313
name = "cybernetic lungs"
368314
desc = "A cybernetic version of the lungs found in traditional humanoid entities. It functions the same as an organic lung and is merely meant as a replacement."

code/modules/surgery/organs/subtypes/drask.dm

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,70 @@
44
name = "drask organ"
55
icon = 'icons/obj/species_organs/drask.dmi'
66
icon_state = "innards"
7+
item_state = "drask_innards"
78
desc = "A greenish, slightly translucent organ. It is extremely cold."
89

910
/obj/item/organ/internal/heart/drask
1011
species_type = /datum/species/drask
1112
name = "drask heart"
1213
icon = 'icons/obj/species_organs/drask.dmi'
14+
item_state = "drask_heart-on"
15+
item_base = "drask_heart"
1316
parent_organ_zone = BODY_ZONE_HEAD
1417

1518
/obj/item/organ/internal/liver/drask
1619
species_type = /datum/species/drask
1720
name = "metabolic strainer"
1821
icon = 'icons/obj/species_organs/drask.dmi'
1922
icon_state = "kidneys"
23+
item_state = "drask_liver"
2024
alcohol_intensity = 0.8
2125

2226
/obj/item/organ/internal/brain/drask
2327
species_type = /datum/species/drask
2428
icon = 'icons/obj/species_organs/drask.dmi'
2529
icon_state = "brain2"
30+
item_state = "drask_brain"
2631
mmi_icon = 'icons/obj/species_organs/drask.dmi'
2732
mmi_icon_state = "mmi_full"
2833

2934
/obj/item/organ/internal/eyes/drask
3035
species_type = /datum/species/drask
3136
name = "drask eyeballs"
3237
icon = 'icons/obj/species_organs/drask.dmi'
38+
item_state = "drask_eyes"
3339
desc = "Drask eyes. They look even stranger disembodied."
3440
see_in_dark = 5
41+
42+
/obj/item/organ/internal/lungs/drask
43+
icon = 'icons/obj/species_organs/drask.dmi'
44+
item_state = "drask_lungs"
45+
cold_message = "an invigorating coldness"
46+
cold_level_1_damage = -COLD_GAS_DAMAGE_LEVEL_1 //They heal when the air is cold
47+
cold_level_2_damage = -COLD_GAS_DAMAGE_LEVEL_2
48+
cold_level_3_damage = -COLD_GAS_DAMAGE_LEVEL_3
49+
cold_damage_types = list(BRUTE = 0.5, BURN = 0.25)
50+
51+
var/cooling_start_temp = DRASK_LUNGS_COOLING_START_TEMP
52+
var/cooling_stop_temp = DRASK_LUNGS_COOLING_STOP_TEMP
53+
54+
/obj/item/organ/internal/lungs/drask/insert(mob/living/carbon/target, special = ORGAN_MANIPULATION_DEFAULT)
55+
. = ..()
56+
57+
if(!.)
58+
return FALSE
59+
60+
RegisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT, PROC_REF(regulate_temperature))
61+
62+
/obj/item/organ/internal/lungs/drask/proc/regulate_temperature(mob/living/source, datum/gas_mixture/environment)
63+
SIGNAL_HANDLER
64+
65+
if(source.stat == DEAD)
66+
return
67+
68+
if(owner.bodytemperature > cooling_start_temp && environment.temperature <= cooling_stop_temp)
69+
owner.adjust_bodytemperature(-5)
70+
71+
/obj/item/organ/internal/lungs/drask/remove(mob/living/user, special = ORGAN_MANIPULATION_DEFAULT)
72+
UnregisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT)
73+
return ..()

code/modules/surgery/organs/subtypes/grey.dm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
name = "grey liver"
44
desc = "A small, odd looking liver."
55
icon = 'icons/obj/species_organs/grey.dmi'
6+
item_state = "grey_liver"
67
alcohol_intensity = 1.4
78

89
/obj/item/organ/internal/brain/grey
910
species_type = /datum/species/grey
1011
desc = "A large brain"
1112
icon = 'icons/obj/species_organs/grey.dmi'
1213
icon_state = "brain2"
14+
item_state = "grey_brain"
1315
mmi_icon = 'icons/obj/species_organs/grey.dmi'
1416
mmi_icon_state = "mmi_full"
1517
smart_mind = TRUE // nerd brains show us sci-hud and research scanner
@@ -27,20 +29,25 @@
2729
name = "grey eyeballs"
2830
desc = "They still look creepy and emotionless."
2931
icon = 'icons/obj/species_organs/grey.dmi'
32+
item_state = "grey_eyes"
3033
see_in_dark = 3
3134
examine_mod = EXAMINE_INSTANT // Insta carbon examine
3235

3336
/obj/item/organ/internal/heart/grey
3437
species_type = /datum/species/grey
3538
name = "grey heart"
3639
icon = 'icons/obj/species_organs/grey.dmi'
40+
item_state = "grey_heart-on"
41+
item_base = "grey_heart"
3742

3843
/obj/item/organ/internal/lungs/grey
3944
species_type = /datum/species/grey
4045
name = "grey lungs"
4146
icon = 'icons/obj/species_organs/grey.dmi'
47+
item_state = "grey_lungs"
4248

4349
/obj/item/organ/internal/kidneys/grey
4450
species_type = /datum/species/grey
4551
name = "grey kidneys"
4652
icon = 'icons/obj/species_organs/grey.dmi'
53+
item_state = "grey_kidneys"

code/modules/surgery/organs/subtypes/kidan.dm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
species_type = /datum/species/kidan
33
name = "kidan liver"
44
icon = 'icons/obj/species_organs/kidan.dmi'
5+
item_state = "kidan_liver"
56
alcohol_intensity = 0.5
67

78

@@ -15,6 +16,7 @@
1516
desc = "A specialized tissue that reacts with oxygen, nutriment and blood to produce light in Kidan."
1617
icon = 'icons/obj/species_organs/kidan.dmi'
1718
icon_state = "kid_lantern"
19+
item_state = "kidan_lantern"
1820
origin_tech = "biotech=2"
1921
w_class = WEIGHT_CLASS_TINY
2022
parent_organ_zone = BODY_ZONE_PRECISE_GROIN
@@ -118,16 +120,20 @@
118120
species_type = /datum/species/kidan
119121
name = "kidan eyeballs"
120122
icon = 'icons/obj/species_organs/kidan.dmi'
123+
item_state = "kidan_eyes"
121124

122125
/obj/item/organ/internal/heart/kidan
123126
species_type = /datum/species/kidan
124127
name = "kidan heart"
125128
icon = 'icons/obj/species_organs/kidan.dmi'
129+
item_state = "kidan_heart-on"
130+
item_base = "kidan_heart"
126131

127132
/obj/item/organ/internal/brain/kidan
128133
species_type = /datum/species/kidan
129134
icon = 'icons/obj/species_organs/kidan.dmi'
130135
icon_state = "brain2"
136+
item_state = "kidan_brain"
131137
mmi_icon = 'icons/obj/species_organs/kidan.dmi'
132138
mmi_icon_state = "mmi_full"
133139
parent_organ_zone = BODY_ZONE_CHEST
@@ -147,11 +153,13 @@
147153
species_type = /datum/species/kidan
148154
name = "kidan lungs"
149155
icon = 'icons/obj/species_organs/kidan.dmi'
156+
item_state = "kidan_lungs"
150157

151158
/obj/item/organ/internal/kidneys/kidan
152159
species_type = /datum/species/kidan
153160
name = "kidan kidneys"
154161
icon = 'icons/obj/species_organs/kidan.dmi'
162+
item_state = "kidan_kidneys"
155163

156164
/obj/item/organ/external/head/kidan
157165
species_type = /datum/species/kidan

code/modules/surgery/organs/subtypes/moth.dm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
/obj/item/organ/internal/eyes/nian
22
name = "moth eyeballs"
3+
item_state = "nian_eyes"
34
see_in_dark = 5
45

56
/obj/item/organ/internal/liver/nian
67
name = "nian liver"
78
icon = 'icons/obj/species_organs/nian.dmi'
9+
item_state = "nian_liver"
810

911
/obj/item/organ/internal/heart/nian
1012
name = "nian heart"
1113
icon = 'icons/obj/species_organs/nian.dmi'
14+
item_state = "nian_heart-on"
15+
item_base = "nian_heart"
1216

1317
/obj/item/organ/internal/brain/nian
1418
icon = 'icons/obj/species_organs/nian.dmi'
1519
icon_state = "brain2"
20+
item_state = "nian_brain"
1621
mmi_icon = 'icons/obj/species_organs/nian.dmi'
1722
mmi_icon_state = "mmi_full"
1823

1924
/obj/item/organ/internal/lungs/nian
2025
name = "nian lungs"
2126
icon = 'icons/obj/species_organs/nian.dmi'
27+
item_state = "nian_lungs"
2228

2329
/obj/item/organ/internal/kidneys/nian
2430
name = "nian kidneys"
2531
icon = 'icons/obj/species_organs/nian.dmi'
32+
item_state = "nian_kidneys"
2633

2734
/obj/item/organ/external/wing/nian
2835
max_damage = 25

code/modules/surgery/organs/subtypes/plasmaman.dm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,41 @@
22
species_type = /datum/species/plasmaman
33
name = "plasmaman liver"
44
icon = 'icons/obj/species_organs/plasmaman.dmi'
5+
item_state = "plasmaman_liver"
56

67
/obj/item/organ/internal/eyes/plasmaman
78
species_type = /datum/species/plasmaman
89
name = "plasmaman eyeballs"
910
icon = 'icons/obj/species_organs/plasmaman.dmi'
11+
item_state = "plasmaman_eyes"
1012

1113
/obj/item/organ/internal/heart/plasmaman
1214
species_type = /datum/species/plasmaman
1315
name = "plasmaman heart"
1416
icon = 'icons/obj/species_organs/plasmaman.dmi'
17+
item_state = "plasmaman_heart-on"
18+
item_base = "plasmaman_heart"
1519

1620
/obj/item/organ/internal/brain/plasmaman
1721
species_type = /datum/species/plasmaman
1822
icon = 'icons/obj/species_organs/plasmaman.dmi'
1923
icon_state = "brain2"
24+
item_state = "plasmaman_brain"
2025
mmi_icon = 'icons/obj/species_organs/plasmaman.dmi'
2126
mmi_icon_state = "mmi_full"
2227

2328
/obj/item/organ/internal/kidneys/plasmaman
2429
species_type = /datum/species/plasmaman
2530
name = "plasmaman kidneys"
2631
icon = 'icons/obj/species_organs/plasmaman.dmi'
32+
item_state = "plasmaman_kidneys"
33+
34+
/obj/item/organ/internal/lungs/plasmaman
35+
name = "plasma filter"
36+
desc = "A spongy rib-shaped mass for filtering plasma from the air."
37+
icon = 'icons/obj/species_organs/plasmaman.dmi'
38+
icon_state = "lungs"
39+
item_state = "plasmaman_lungs"
40+
safe_oxygen_min = 0 //We don't breath this
41+
safe_toxins_min = 16 //We breathe THIS!
42+
safe_toxins_max = 0

0 commit comments

Comments
 (0)