-
Notifications
You must be signed in to change notification settings - Fork 19
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
1 parent
4010c36
commit 3e8d815
Showing
24 changed files
with
82 additions
and
110 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,9 @@ | ||
# Cheat [MindustryBE Mod] | ||
|
||
`paulieg626/Cheat` | ||
|
||
- Fill the core up to 900kk items!!! | ||
|
||
- Spawn units who you want!!! | ||
|
||
- [Cheat VK](https://vk.com/mindustry_cheat) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,60 @@ | ||
const magic=extendContent(Wall,"magic", { | ||
add(b, table){ | ||
button = table.addImageButton(new TextureRegionDrawable(Vars.content.units().get(b).icon(Cicon.small)), Styles.clearFulli, 50, run(() => { | ||
u = Vars.content.units().get(b); | ||
unit = u.create(this.getTeam()); | ||
unit.set(this.drawx(), this.drawy()+8); | ||
unit.add(); | ||
})).size(75) | ||
}, | ||
buildConfiguration(table){ | ||
size = 75; | ||
image = 50; | ||
for(b = 0; b <= Vars.content.units().size; b++){ | ||
if(b<Vars.content.units().size){ | ||
this.add(b, table); | ||
if(b % 6 == 5){ | ||
table.row() | ||
}}else{ | ||
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-unit-all")), Styles.clearTransi, image, run(() => { | ||
for(o = 0; o < Vars.content.units().size; o++){ | ||
u = Vars.content.units().get(o); | ||
unit = u.create(this.getTeam()); | ||
unit.set(this.drawx(), this.drawy()+8); | ||
unit.add(); | ||
} | ||
})).size(size); | ||
}}; | ||
table.row(); | ||
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-units")), Styles.clearTransi, image, run(() => {})).size(size); | ||
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-null")), Styles.clearTransi, image, run(() => {})).size(size); | ||
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-players")), Styles.clearTransi, image, run(() => {})).size(size); | ||
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-null")), Styles.clearTransi, image, run(() => {})).size(size); | ||
table.row() | ||
table.addButton("[#ff0000]Kill", run(() =>{ | ||
Vars.unitGroup.all().each(cons(unit=>unit.kill())) | ||
})).size(size); | ||
table.addButton("[#00ff00]Heal", run(() =>{ | ||
Vars.unitGroup.all().each(cons(unit=>unit.heal())) | ||
})).size(size); | ||
table.addButton("[#ff4040]Kill", run(() =>{ | ||
Vars.player.kill() | ||
})).size(size); | ||
table.addButton("[#40ff40]Heal", run(() =>{ | ||
Vars.player.heal() | ||
})).size(size); | ||
}, | ||
update(){ | ||
this.entity.health = Number.MAX_VALUE | ||
}}); | ||
magic.solid = true; | ||
magic.configurable = true; | ||
magic.layer = Layer.turret | ||
magic.update = true; | ||
magic.health = 900000000; | ||
magic.itemCapacity=10; | ||
var unitsGroup = []; | ||
var teamsGroup = []; | ||
|
||
const m = extendContent(Block, "magic",{ | ||
init(){ | ||
this.super$init(); | ||
unitsGroup = Vars.content.units() | ||
teamsGroup = Team.baseTeams | ||
} | ||
}) | ||
|
||
m.buildType = prov(() => extend(Building,{ | ||
pint: 0, | ||
unitAll: [], | ||
addButtonTeam(i, table){ | ||
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" + i)), Styles.clearFulli, 30, run(() => { | ||
this.team = teamsGroup[i] | ||
Vars.player.team(teamsGroup[i]) | ||
})).size(40); | ||
}, | ||
addButtonUnit(b, table){ | ||
table.button(new TextureRegionDrawable(unitsGroup.get(b).icon(Cicon.small)), Styles.clearFulli, 30, run(() => { | ||
this.unitAll.push(b); | ||
})).size(40); | ||
}, | ||
buildConfiguration(table) { | ||
for(var i = 0; i < teamsGroup.length; i++){ | ||
this.addButtonTeam(i, table) | ||
}; | ||
table.row(); | ||
for(var b = 0; b < unitsGroup.size; b++){ | ||
this.addButtonUnit(b, table); | ||
if(b % 6 == 5){ | ||
table.row() | ||
} | ||
}; | ||
table.row(); | ||
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" +"close")), Styles.clearFulli, 30, run(() => { | ||
Groups.unit.each(cons(unit => unit.kill())) | ||
})).size(40); | ||
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" +"play")), Styles.clearFulli, 30, run(() => { | ||
for(var b = 0; b < this.unitAll.length; b++){ | ||
unitsGroup.get(this.unitAll[b]).spawn(this.team, this.spawnX, this.spawnY); | ||
} | ||
this.unitAll = []; | ||
})).size(40); | ||
}, | ||
loadTex(){ | ||
this.spawnX = this.x; | ||
this.spawnY = this.y; | ||
}, | ||
update(tile){ | ||
if(this.pint <= 0){ | ||
this.loadTex() | ||
this.pint++ | ||
} | ||
} | ||
})); | ||
m.update = true; | ||
m.configurable = true; |
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 was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.