% type = deed.property_type %>

This building has seen <%= deed.total_revenue %> in profits since it was built <%= time_ago_in_words(deed.created_on) %> ago.
<% counter = 1 %> <% rent = type.base_rent %> <% cost = type.base_price %> <% table_head = capture do %>| Stories | Rent | Build / Sell | |
|---|---|---|---|
| <%= counter %> | <%= number_with_delimiter(deed.property_type.rent(counter)) %> | <% if deed.levels < counter %> -<%= number_with_delimiter(deed.cost_to_upgrade(counter)) %> <% elsif deed.levels >= counter %> +<%= number_with_delimiter(deed.cost_to_sell(counter-1)) %> <% else %> <% end %> | <% if deed.levels < counter and @user.user_instance.account.balance >= deed.cost_to_upgrade(counter-1) %> <%= link_to_remote "Buy", :update => "action_pane", :url => {:action=> 'upgrade', :id => deed.id, :levels => counter-deed.levels}, :oncomplete => "$('actual_message').innerHTML = '#{session[:messages]}'" %> <% elsif counter==1 %> <%= link_to "Sell", {:action=> 'sell', :id => deed.id, :levels => deed.levels-counter+1 } %> <% elsif deed.levels >= counter and deed.levels > 1 %> <%= link_to_remote "Sell", :update => "action_pane", :url => {:action=> 'sell', :id => deed.id, :levels => deed.levels-counter+1 } %> <% end %> | <% elsif counter == max_affordable_levels+2 %>
| Cannot afford past <%= max_affordable_levels %> stories. | |||
Upgrades
Build higher at any time by simply purchasing another story.
Maintenance
<% if deed.health == 14 %> Your building is in perfect shape and charging full rent. <% elsif deed.health < 14 and deed.health > 10 %> It's not looking too shabby yet, but the lack of maintenance is lowering your rates. <% elsif deed.health <= 10 and deed.health > 5 %> It's starting to get nasty. People are finding things under the beds, and it's not good. Your rates are hurting because of it. <% else %> If you don't do something about this wreck of a building it'll be condemned and you'll lose it. If that weren't bad enough, your rates are severely reduced because of all the puke. <% end %>
<% if deed.health < 14 %>
Perform <%= link_to "minimal maintenance", :action => "minimal", :id => deed.id %> (50)
Perform <%= link_to "maximum maintenance", :action => "maximum", :id => deed.id %> (<%= (14 - deed.health) * 50 %>)
Selling
Sell back levels to make some quick cash. Selling stories comes with a 10% penalty.