Makes the PI circuit use the PI define (#37161)
* Makes the PI circuit use PI * I'm a moron :() * Update arithmetic.dm * Update arithmetic.dm * forgot the parentheses * that's another commit
This commit is contained in:
@@ -240,9 +240,13 @@
|
||||
icon_state = "pi"
|
||||
inputs = list()
|
||||
spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/integrated_circuit/arithmetic/pi/Initialize()
|
||||
. = ..()
|
||||
desc = "Not recommended for cooking. Outputs '[PI]' when it receives a pulse."
|
||||
|
||||
/obj/item/integrated_circuit/arithmetic/pi/do_work()
|
||||
set_pin_data(IC_OUTPUT, 1, 3.14159)
|
||||
set_pin_data(IC_OUTPUT, 1, PI)
|
||||
push_data()
|
||||
activate_pin(2)
|
||||
|
||||
@@ -306,4 +310,4 @@
|
||||
|
||||
set_pin_data(IC_OUTPUT, 1, result)
|
||||
push_data()
|
||||
activate_pin(2)
|
||||
activate_pin(2)
|
||||
|
||||
Reference in New Issue
Block a user