Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
younggam committed Aug 2, 2020
1 parent b7c0a1d commit ee9557b
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 11 deletions.
4 changes: 3 additions & 1 deletion bundles/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ block.steam-power-bullet-mill.description=Manufactures Bullets.
block.steam-power-burner.name=Burner
block.steam-power-burner.description=Heats up using fuel. If you use pyratite as fuel, you can run two steam generators.\n\n[red]Heat Giver. Explodes when heat goes over 500.\nHeat decreases by 5% per sec of current heat.\nThe lower limit is 25.
block.steam-power-electric-burner.name=Electric Burner
block.steam-power-electric-burner.description=Heats up using power.\n\n[red]Heat Giver. Explodes when heat goes over 500.\nHeat decreases by 5% per sec of current heat.\nThe lower limit is 25.
block.steam-power-electric-burner.description=Heats up using power.\n\n[red]Heat Giver. Explodes when heat goes over 300.\nHeat decreases by 5% per sec of current heat.\nThe lower limit is 25.
block.steam-power-heat-regulator.name=Heat Regulator
block.steam-power-heat-regulator.description=Uses power to control the surrounding heat givers. You can configure the upper limit. The higher the current heat, the more power it consumes. Handles up to 30 heat per second.\n\n[red]Heat Block. Explodes when heat goes over 500.\nHeat decreases by 5% per sec of current heat.\nThe lower limit is 25.
block.steam-power-metal-smelter.name=Metal Smelter
Expand Down Expand Up @@ -61,3 +61,5 @@ block.steam-power-teleporter.description=Advanced item transport block. Teleport
unit.steam-power-draug-a.name = Draug-A Miner Drone
unit.steam-power-draug-a.description = Smarter then the vanilla miner drone. Delivers mined resources to the cloeset furnace.
unit.steam-power-younggam.name=Younggam
unit.steam-power-younggam.description=Younggam crusier. Shoots yamatocannon every 3 seconds that follows the target to the end.
6 changes: 5 additions & 1 deletion bundles/bundle_ko.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ block.steam-power-bullet-mill.description=총알을 제조합니다.
block.steam-power-burner.name=가열기
block.steam-power-burner.description=연료을 이용해 가열합니다. 만약 파이라타이트를 연료로 사용하면 2개의 증기 발생기를 가동시킬 수 있습니다.\n\n[red]열 방출기 입니다. 열이 500 이상이 되면 폭발합니다.\n열은 초당 현재 열의 5%만큼 감소합니다.\n하한선은 25입니다.
block.steam-power-electric-burner.name=전기 가열기
block.steam-power-electric-burner.description=전기를 이용해 가열합니다.\n\n[red]열 방출기 입니다. 열이 500 이상이 되면 폭발합니다.\n열은 초당 현재 열의 5%만큼 감소합니다.\n하한선은 25입니다.
block.steam-power-electric-burner.description=전기를 이용해 가열합니다.\n\n[red]열 방출기 입니다. 열이 300 이상이 되면 폭발합니다.\n열은 초당 현재 열의 5%만큼 감소합니다.\n하한선은 25입니다.
block.steam-power-heat-regulator.name=열 조절기
block.steam-power-heat-regulator.description=전기를 소모해 주변의 열 방출기를 조절합니다. 버튼을 이용해 상한선을 설정할 수 있습니다. 현재 열이 높을 수록 더 많은 전력을 소모하며, 최대 초당 30열 까지 조절가능합니다. \n\n[red]열 블럭입니다. 열이 500 이상이 되면 폭발합니다.\n열은 전기가 초당 현재 열의 5%만큼 감소합니다.\n하한선은 25입니다.
block.steam-power-metal-smelter.name=금속 제련소
Expand Down Expand Up @@ -80,6 +80,8 @@ block.steam-power-heat-phase-bridge.name=메타 열 다리
block.steam-power-heat-phase-bridge.description=열을 굉장히 긴 범위로 전달할 수 있습니다.\n\n[red]열 블럭입니다. 열이 1000 이상이 되면 폭발합니다.\n열은 초당 현재 열의 0.5%만큼 감소합니다.\n하한선은 25입니다.
block.steam-power-teleporter.name=텔레포터
block.steam-power-teleporter.description=고급 아이템 운송 블럭입니다. 텔레포터들은 같은 색의 텔레포터들로부터 아이템을 받습니다. 같은 색의 텔레포터들이 존재하지 않으면 아무것도 하지 않습니다. 만약 같은 색의 여러 텔레포터들이 존재한다면, 무작위로 전송합니다. 전력을 사용합니다. 눌러서 색을 바꿀 수 있습니다.
block.steam-power-starport.name=우주공항
block.steam-power-starport.description=영감 순양함을 생산합니다.

item.steam-power-armor-piercing-shell.name=철갑탄
item.steam-power-armor-piercing-shell.description=철갑탄.
Expand Down Expand Up @@ -133,6 +135,8 @@ liquid.steam-power-steam.description=증기.

unit.steam-power-draug-a.name = 드라우그-A 채광 드론
unit.steam-power-draug-a.description = 바닐라 채광 드론보다 똑똑합니다. 채광한 자원을 가장 가까운 용광로에 전달합니다.
unit.steam-power-younggam.name=영감
unit.steam-power-younggam.description=영감 순양함. 매 3초마다 목표를 끝까지 쫓아가는 야마토포를 발사합니다.

zone.steam-power-evaporation.name=증발
zone.steam-power-evaporation.description=풍부한 자원.
Expand Down
4 changes: 2 additions & 2 deletions content/blocks/units/starport.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
type:UnitFactory
name: Starport
description:Build cruiser
description:Produces Younggam cruiser.
unitType:younggam
size:5
size:8
produceTime:3600
maxSpawn:2
consumes:{
Expand Down
3 changes: 0 additions & 3 deletions content/units/younggam.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: younggam
description: Younggam cruiser.
speed: 0.04
flying: true
health: 6000
engineOffset: 10
hitsize:38
range: 80
mass:30
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name:steam-power
displayName:Steam Power
description:"[orange]Realistic power generation. \n\n[cyan]Developer : [green]younggam\n[yellow]Thanks to : sirius, 우파루파, Lily, sk7725\n\n[red]Need younggam/multi-lib"
author: younggam
version: 1.7.0
version: 1.7.1
minGameVersion: 104
dependencies:["multi-lib"]
2 changes: 1 addition & 1 deletion scripts/blocks/production/electric-burner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const heatL=require("heatWrapper");
const electricBurner=heatL.heatGiver(Block,TileEntity,"electric-burner",{
heatCapacity:500,
heatCapacity:300,
heatProduction:1/3,
setStats(){
this.super$setStats();
Expand Down
5 changes: 3 additions & 2 deletions scripts/blocks/turrets/launchpad.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ const launchpad=extendContent(ItemTurret,"launchpad",{
},
drawSelect(tile){
const entity=tile.ent();
Drawf.dashCircle(entity.getTargetSpot().worldx(),entity.getTargetSpot().worldy(),10,tile.getTeam().color);
if(this.hasAmmo(tile)) Drawf.dashCircle(entity.getTargetSpot().worldx(),entity.getTargetSpot().worldy(),this.peekAmmo(tile).splashDamageRadius,tile.getTeam().color);
if(entity.getTargetSpot()==null) var spot=entity.setTargetSpot(tile);
Drawf.dashCircle(spot.worldx(),spot.worldy(),10,tile.getTeam().color);
if(this.hasAmmo(tile)) Drawf.dashCircle(spot.worldx(),spot.worldy(),this.peekAmmo(tile).splashDamageRadius,tile.getTeam().color);
if(entity.getLaunchTimer()[0]!=null){
const entries=entity.getLaunchTimer().length;
for(var i=0;i<entries;i++){
Expand Down
20 changes: 20 additions & 0 deletions scripts/units/younggam.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,26 @@ younggam.create(prov(()=>new JavaAdapter(HoverUnit,{
var to=Predict.intercept(this,this._target,laser.speed);
this.getWeapon().updateLaser(this,to.x,to.y,current[1]);
}
},
draw/*Under*/(){
this.super$draw()
var rot=this.rotation
var c=Tmp.v1.trns(rot,-33);
var l=Tmp.v2.trns(rot,-32,5);
var r=Tmp.v3.trns(rot,-32,-5);
var x=this.x,y=this.y,size=this.type.engineSize;
Draw.color(Pal.engine);
Fill.circle(x+c.x,y+c.y,size+Mathf.absin(Time.time(),2,size*0.25));
Fill.circle(x+l.x,y+l.y,size+Mathf.absin(Time.time(),2,size*0.25));
Fill.circle(x+r.x,y+r.y,size+Mathf.absin(Time.time(),2,size*0.25));
Draw.color(Color.white);
c.scl(0.98);
l.scl(0.98);
r.scl(0.98);
Fill.circle(x+c.x,y+c.y,(size+Mathf.absin(Time.time(),2,size*0.25))*0.5);
Fill.circle(x+l.x,y+l.y,(size+Mathf.absin(Time.time(),2,size*0.25))*0.5);
Fill.circle(x+r.x,y+r.y,(size+Mathf.absin(Time.time(),2,size*0.25))*0.5);
Draw.color();
}
})));
younggam.weapon=weapons;
Binary file modified sprites/blocks/units/starport-top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/blocks/units/starport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee9557b

Please sign in to comment.