[READY]Refactors techwebs to have different types of points - PR HAS NO GAMEPLAY IMPACT

This commit is contained in:
kevinz000
2018-05-19 16:51:14 -07:00
committed by letterjay
parent 94d7c7b85c
commit d54667c81b
13 changed files with 313 additions and 172 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ GLOBAL_LIST_EMPTY(doppler_arrays)
say("Explosion not large enough for research calculations.")
return
linked_techweb.max_bomb_value = adjusted
linked_techweb.research_points += point_gain
linked_techweb.add_point_type(TECHWEB_POINT_TYPE_DEFAULT, point_gain)
say("Gained [point_gain] points from explosion dataset.")
/obj/machinery/doppler_array/research/science/Initialize()
+3 -4
View File
@@ -204,11 +204,10 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
research_msg += sep
research_msg += node.display_name
sep = ", "
var/points = techweb_item_point_check(src)
if (points)
research_msg += sep
research_msg += "[points] points"
var/list/points = techweb_item_point_check(src)
if (length(points))
sep = ", "
research_msg += techweb_point_display_generic(points)
if (!sep) // nothing was shown
research_msg += "None"