mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
* RCD now rebuilds existing constructs faster and with less resources (#58029) * RCD now rebuilds faster * Reconstructing now costs less * Fix _ * Remove unused flag, use helper proc * Add sound * Remove previously useless, now inaccurate comment * Add MIN_COMPILER_VERSION warning * RCD now rebuilds existing constructs faster and with less resources Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
11 lines
411 B
Plaintext
11 lines
411 B
Plaintext
/// Produces a new RCD result from the given one if it can be calculated that
|
|
/// the RCD should speed up with the remembered form.
|
|
/proc/rcd_result_with_memory(list/defaults, turf/place, expected_memory)
|
|
if (place?.rcd_memory == expected_memory)
|
|
return defaults + list(
|
|
"cost" = defaults["cost"] / RCD_MEMORY_COST_BUFF,
|
|
"delay" = defaults["delay"] / RCD_MEMORY_SPEED_BUFF,
|
|
)
|
|
else
|
|
return defaults
|