mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-07-10 10:10:56 +08:00
Remove histogram for now
This commit is contained in:
@@ -53,7 +53,6 @@
|
||||
{{ lc.lab.money | currency }}
|
||||
</p>
|
||||
</div>
|
||||
<div id="ResearchHist"></div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-2 scrollable" id="HR" ng-controller="HRController as hrc">
|
||||
@@ -131,7 +130,6 @@
|
||||
|
||||
<script src="js/event.js"></script>
|
||||
<script src="js/detector.js"></script>
|
||||
<script src="js/histogram.js"></script>
|
||||
<script src="js/game.js"></script>
|
||||
<script src="js/ui.js"></script>
|
||||
</body>
|
||||
|
||||
+2
-4
@@ -20,13 +20,11 @@
|
||||
data: 0,
|
||||
reputation: 0,
|
||||
money: 0,
|
||||
researchHistogram: new Histogram('#ResearchHist'),
|
||||
getGrant: function() {
|
||||
this.money += this.reputation * 5; // TODO: adjust factor, 5
|
||||
getGrant: function () {
|
||||
this.money += this.reputation * 5; // TODO: adjust factor
|
||||
},
|
||||
acquire: function(amount) {
|
||||
this.data += amount;
|
||||
this.researchHistogram.add_events(amount);
|
||||
},
|
||||
research: function(cost, reputation) {
|
||||
if (this.data >= cost) {
|
||||
|
||||
Reference in New Issue
Block a user