- Department radio keys are now a global list and no longer a list that gets created every single time 'say :X' is used

- You can no longer whisper when stung by a changeling or had another thing make your 'silent' var get set.
- Added a single empty toolbelt to robotics, added a wrench and screwdriver to toxins.
- Power cells now always spawn full. The double use of the 'charge' variable was not good, as when creating the map it had a value of 0 - 100 to represent the percentage of the cell's power, while it was used as a numeric representation of the amper-hours that were still left in the cell. The problem this caused was that cells created mid-round (cells which spawned in closets or were spawned by admins) always started empty. They all start fully charged now. Additional obj/item/weapon/cell/X/empty types were added if we want empty cells.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3763 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-06-08 07:45:16 +00:00
parent 39a775c78c
commit a14a9aac27
7 changed files with 91 additions and 175 deletions
+1 -10
View File
@@ -4,21 +4,12 @@
/obj/item/weapon/cell/New()
..()
charge = charge * maxcharge/100.0 // map obj has charge as percentage, convert to real value here
charge = maxcharge
spawn(5)
updateicon()
/obj/item/weapon/cell/proc/updateicon()
/*if(maxcharge < 10000)
icon_state = "cell"
if(maxcharge >= 10000 && maxcharge < 20000)
icon_state = "hcell"
if(maxcharge >= 20000 && maxcharge < 30000)
icon_state = "scell"
else
icon_state = "hpcell"*/
overlays = null