-
Notifications
You must be signed in to change notification settings - Fork 555
/
research_upgrades.dm
72 lines (57 loc) · 2.37 KB
/
research_upgrades.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//prop items
/obj/item/oldresearch
name = "Alien Organ"
desc = "Looking at it makes you want to vomit"
icon = 'icons/obj/items/Marine_Research.dmi'
icon_state = "biomass"
black_market_value = 50
//For all of them for now, until we have specific organs/more techs
/obj/item/oldresearch/Resin
name = "Alien Resin"
desc = "A piece of alien Resin"
icon_state = "biomass"
/obj/item/oldresearch/Chitin
name = "Chunk of Chitin"
desc = "A chunk of alien Chitin"
icon_state = "chitin-chunk"
/obj/item/oldresearch/Blood
name = "Blood Vial"
desc = "A sample of alien Blood"
icon_state = "blood-vial"
//prop items end
//previously file holding left over stuff that never got finished from 8 years ago, it was boring though, so we change that.
/obj/item/research_upgrades
name = "Research upgrade"
desc = "Somehow you got this, you shouldnt be able to, consider yourself special."
icon = 'icons/obj/items/disk.dmi'
w_class = SIZE_TINY
icon_state = "datadisk1" // doesnt HAVE to be a disk!
///technology stored on this disk, goes through one to whatever levels of upgrades there are.
var/value
/obj/item/research_upgrades/autodoc
name = "Research Upgrade (AutoDoc)"
value = RESEARCH_UPGRADE_TIER_1
/obj/item/research_upgrades/autodoc/Initialize(mapload, value)
. = ..()
src.value = value
desc = "Research upgrade for an AutoDoc. The technology on this disk is used [get_upgrade_text()]. Insert it in an AutoDoc to use it."
/obj/item/research_upgrades/autodoc/proc/get_upgrade_text()
switch(value)
if(RESEARCH_UPGRADE_TIER_1)
return "for stitching up internal bleedings"
if(RESEARCH_UPGRADE_TIER_2)
return "for fixing broken bones"
if(RESEARCH_UPGRADE_TIER_3)
return "for treating internal organ damage"
if(RESEARCH_UPGRADE_TIER_4)
return "for extracting unknown parasites"
/obj/item/research_upgrades/sleeper
name = "Research Upgrade (Sleeper)"
desc = "Research upgrade for a sleeper system. The technology on this disk is used on a sleeper to allow a wider spectrum of chemicals to be administered."
/obj/item/research_upgrades/credits
name = "Research Market (Credits)"
var/credit_value = 8
/obj/item/research_upgrades/credits/Initialize(mapload, ...)
. = ..()
credit_value = rand(8, 9)
desc = "Research disk containing all the bits of data the analyzer could salvage, insert this into a research computer in order to sell the data and acquire [credit_value] points."