forked from jackiekircher/VimCity
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrea
committed
Nov 6, 2011
1 parent
74b8137
commit 8eacd2d
Showing
5 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class AtmoGen < Building | ||
|
||
def initialize | ||
@symbol = ['o|o', | ||
'|o|'] | ||
@height = 2 | ||
@width = 3 | ||
@cost = 1000 | ||
@capacity = 0 | ||
@workers_required = 30 | ||
@description = "Produces oxygen" | ||
@bonuses = "Permits to expand your city on the planet, can store 2000 Oxygen units" | ||
end | ||
|
||
def add_to_city(city) | ||
city.atmogen+=1 | ||
super(city) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters