feat: impossible d'ajouter de la fibre ou cuivre sur un transmuteur déjà posé modification des positiveur ii et negativeur ii pour l'élément fibre.
This commit is contained in:
parent
bba8260d15
commit
f3f98d564f
|
@ -69,7 +69,7 @@ public class Negativer_II extends Transmuter {
|
|||
this.ActivationLevel=0;
|
||||
this.Tilestype= new OrderedMap<Vector2, CaseType>();
|
||||
this.Tilestype.put(new Vector2(0,0), CaseType.Cuivre);
|
||||
this.Tilestype.put(new Vector2(1,0), CaseType.Fibre);
|
||||
this.Tilestype.put(new Vector2(1,0), CaseType.Fibre_seul);
|
||||
this.Tilesid= new OrderedMap<Vector2, Integer>();
|
||||
this.Tilesid.put(new Vector2(0,0), 109);
|
||||
this.Tilesid.put(new Vector2(1,0), 107);
|
||||
|
|
|
@ -69,7 +69,7 @@ public class Positiver_II extends Transmuter {
|
|||
this.ActivationLevel=0;
|
||||
this.Tilestype= new OrderedMap<Vector2, CaseType>();
|
||||
this.Tilestype.put(new Vector2(0,0), CaseType.Cuivre);
|
||||
this.Tilestype.put(new Vector2(1,0), CaseType.Fibre);
|
||||
this.Tilestype.put(new Vector2(1,0), CaseType.Fibre_seul);
|
||||
this.Tilesid= new OrderedMap<Vector2, Integer>();
|
||||
this.Tilesid.put(new Vector2(0,0), 106);
|
||||
this.Tilesid.put(new Vector2(1,0), 107);
|
||||
|
|
|
@ -475,6 +475,7 @@ public class GameScreen implements Screen {
|
|||
}
|
||||
|
||||
void map_fiber_pen(float realx, float realy,int x, int y,boolean alone,int button,calling call) {
|
||||
if (level.Grid.GetXY(x,y).Transmuter_calc==0)
|
||||
level.Grid.GetXY(x,y).Fiber=-1*level.Grid.GetXY(x,y).Fiber+1;
|
||||
if (alone) {
|
||||
level.Grid.tiling_copper();
|
||||
|
@ -483,6 +484,7 @@ public class GameScreen implements Screen {
|
|||
}
|
||||
|
||||
void map_fiber_brush(float realx, float realy,int x, int y,boolean alone,int button,calling call) {
|
||||
if (level.Grid.GetXY(x,y).Transmuter_calc==0)
|
||||
level.Grid.GetXY(x,y).Fiber=1;
|
||||
if (alone) {
|
||||
level.Grid.tiling_copper();
|
||||
|
@ -501,6 +503,7 @@ public class GameScreen implements Screen {
|
|||
}
|
||||
|
||||
void map_copper_pen(float realx, float realy,int x, int y,boolean alone,int button,calling call) {
|
||||
if (level.Grid.GetXY(x,y).Transmuter_calc==0)
|
||||
level.Grid.GetXY(x,y).Copper=!level.Grid.GetXY(x,y).Copper;
|
||||
if (alone) {
|
||||
level.Grid.tiling_copper();
|
||||
|
@ -509,6 +512,7 @@ public class GameScreen implements Screen {
|
|||
}
|
||||
|
||||
void map_copper_brush(float realx, float realy,int x, int y,boolean alone,int button,calling call) {
|
||||
if (level.Grid.GetXY(x,y).Transmuter_calc==0)
|
||||
level.Grid.GetXY(x,y).Copper=true;
|
||||
if (alone) {
|
||||
level.Grid.tiling_copper();
|
||||
|
|
Loading…
Reference in New Issue