Merge pull request #6790 from mwerezak/robot-radio

Fixes robot radio component not using power
This commit is contained in:
Chinsky
2014-10-20 03:53:10 +04:00
3 changed files with 17 additions and 2 deletions

View File

@@ -244,6 +244,12 @@
continue
M.show_message("<i><span class='game say'><span class='name'>synthesised voice</span> <span class='message'>beeps, \"beep beep beep\"</span></span></i>",2)
//robot binary xmitter component power usage
if (isrobot(speaker))
var/mob/living/silicon/robot/R = speaker
var/datum/robot_component/C = R.components["comms"]
R.cell_use_power(C.active_usage)
/datum/language/binary/drone
name = "Drone Talk"
desc = "A heavily encoded damage control coordination stream."

View File

@@ -112,7 +112,8 @@
/datum/robot_component/radio
name = "radio"
external_type = /obj/item/robot_parts/robot_component/radio
active_usage = 10
idle_usage = 15 //it's not actually possible to tell when we receive a message over our radio, so just use 10W every tick for passive listening
active_usage = 75 //transmit power
max_damage = 40
@@ -122,7 +123,8 @@
/datum/robot_component/binary_communication
name = "binary communication device"
external_type = /obj/item/robot_parts/robot_component/binary_communication_device
active_usage = 10
idle_usage = 5
active_usage = 25
max_damage = 30