Added pause menu, refreshed solo lobby menu, added settings for storing player's color and team, misc.

This commit is contained in:
2021-01-01 19:20:05 -06:00
parent 5f301337b4
commit f3fccc8b24
13 changed files with 145 additions and 54 deletions

View File

@@ -5,15 +5,12 @@ class IMICRTS
return unless item
item.progress += 1
item.progress += 1 if @parent.component(:building).construction_complete?
if item.progress >= item.entity.build_steps
unless item.completed
item.completed = true
return unless item.progress >= item.entity.build_steps && !item.completed
@parent.director.schedule_order(IMICRTS::Order::BUILD_UNIT_COMPLETE, @parent.player.id, @parent.id)
end
end
item.completed = true
@parent.director.schedule_order(IMICRTS::Order::BUILD_UNIT_COMPLETE, @parent.player.id, @parent.id)
end
end
end