unnatural organisms/more community creations

This commit is contained in:
MaxRobinsonTheGreat
2023-04-23 18:56:41 -05:00
parent d77e8c12f6
commit 53118e9340
24 changed files with 177 additions and 49 deletions

View File

@@ -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);