unnatural organisms/more community creations
This commit is contained in:
@@ -54,6 +54,12 @@ class EditorController extends CanvasController{
|
||||
|
||||
updateDetails() {
|
||||
$('.cell-count').text("Cell count: "+this.env.organism.anatomy.cells.length);
|
||||
if (this.env.organism.isNatural()){
|
||||
$('#unnatural-org-warning').css('display', 'none');
|
||||
}
|
||||
else {
|
||||
$('#unnatural-org-warning').css('display', 'block');
|
||||
}
|
||||
}
|
||||
|
||||
defineCellTypeSelection() {
|
||||
@@ -150,13 +156,14 @@ class EditorController extends CanvasController{
|
||||
this.setEditorPanel();
|
||||
else
|
||||
this.setDetailsPanel();
|
||||
|
||||
}
|
||||
|
||||
setDetailsPanel() {
|
||||
this.clearDetailsPanel();
|
||||
var org = this.env.organism;
|
||||
|
||||
$('.cell-count').text("Cell count: "+org.anatomy.cells.length);
|
||||
this.updateDetails();
|
||||
$('#move-range').text("Move Range: "+org.move_range);
|
||||
$('#mutation-rate').text("Mutation Rate: "+org.mutability);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user