Adds sized (S, M, L) power cells and a generic component for battery powered items (#2352)

* Refactor battery/powercell assets and add new ones.

* committing before I fuck things up

* slot component doned I think

* dictionary update

* Fixes

* Moving flashlight to powerslotcomponent

* har har i am using the message tubes

* Better documentation comment

* Reverting this overengineered garbage.

* Off with ye I said

* Examine texts.

* Some minor fixes to IDE complaints

* slot size from yaml

* Ignored component + removing a useless typo entry

* Making stunbatons use this

* Handle the message and remove some unnecessary dirtiness

* actionblocker checks

* remove unused file

* remove updatevisual

* make these nullable

* make these nullable too

* Unrename sprite folder

* check itemcomponent on insertion

* Use SendMessage over Owner.SendMessage

* Add support for auto-recharging batteries, an auto-recharging cell, and make flashlight status update correctly if one is inserted in it.

* get rid of public fields which are Bad

* add a description for the stun baton while i'm in here

* one more public field

* Add the blinky animation to the atomic cell

* Fix the charge indicator being STUPID

* better comments

* this is a better function

* add pause for flashlight, remove unnecessary imports from battery

* potato battery copyright link

* WHO DID THAT

* mr clean has come

* Random pitch

* pausing

* round to nearest levels
This commit is contained in:
Peter Wedder
2020-10-29 20:17:03 +02:00
committed by GitHub
parent 60bee860cb
commit fca556a1c1
81 changed files with 1328 additions and 284 deletions

View File

@@ -0,0 +1,20 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/tgstation/tgstation/commit/7dcdbc1468ffdc8689b984cb6b181d48ae41dbf2",
"states": [
{
"name": "potato_battery",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "l_hi",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hi_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "l_hi_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hi_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hi_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hi_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "l_hy",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hy_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "l_hy_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hy_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hy_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_hy_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "l_st",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_st_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "l_st_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_st_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_st_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_st_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "l_sup",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_sup_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "l_sup_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_sup_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_sup_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "l_sup_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "m_hi",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hi_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "m_hi_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hi_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hi_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hi_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "m_hy",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hy_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "m_hy_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hy_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hy_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_hy_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "m_st",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_st_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "m_st_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_st_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_st_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_st_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/",
"states": [
{
"name": "m_sup",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_sup_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "m_sup_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_sup_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_sup_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "m_sup_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

View File

@@ -0,0 +1,66 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/discordia-space/CEV-Eris/blob/master/icons/obj/power_cells.dmi",
"states": [
{
"name": "s_ar",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "s_ar_0",
"directions": 1,
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "s_ar_100",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "s_ar_25",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "s_ar_50",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "s_ar_75",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B