mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Stock Part Resprite (#75149)
## About The Pull Request Resprites stock parts to bring them up to date, changes manipulators to servo motors as I couldn't make manipulators work well at this scale.  (Power cells sold separately) ## Why It's Good For The Game The old stock parts are dated, in some cased quite ugly, and in the case of manipulators a ball of assorted pixels. Incidentally removed a couple of single letter var names. ## Changelog 🆑 image: Stock parts have been resprited. code: Manipulators have been renamed to servo motors, all related types have been repathed to match. /🆑
This commit is contained in:
@@ -77,9 +77,9 @@
|
||||
/obj/machinery/component_printer/proc/calculate_efficiency()
|
||||
var/rating = 0
|
||||
|
||||
for(var/datum/stock_part/manipulator/manipulator in component_parts)
|
||||
for(var/datum/stock_part/servo/servo in component_parts)
|
||||
///we do -1 because normal manipulators rating of 1 gives us 1-1=0 i.e no decrement in cost
|
||||
rating += manipulator.tier-1
|
||||
rating += servo.tier-1
|
||||
|
||||
///linear interpolation between full cost i.e 1 & 1/8th the cost i.e 0.125
|
||||
///we do it in 6 steps because maximum rating of 2 manipulators is 8 but -1 gives us 6
|
||||
@@ -348,9 +348,9 @@
|
||||
|
||||
var/rating = 0
|
||||
|
||||
for(var/datum/stock_part/manipulator/manipulator in component_parts)
|
||||
for(var/datum/stock_part/servo/servo in component_parts)
|
||||
///we do -1 because normal manipulators rating of 1 gives us 1-1=0 i.e no decrement in cost
|
||||
rating += manipulator.tier - 1
|
||||
rating += servo.tier - 1
|
||||
|
||||
///linear interpolation between full cost i.e 1 & 1/8th the cost i.e 0.125
|
||||
///we do it in 6 steps because maximum rating of 2 manipulators is 8 but -1 gives us 6
|
||||
|
||||
Reference in New Issue
Block a user