Fixed Question
This commit is contained in:
parent
f585001067
commit
31800a915e
Binary file not shown.
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.4 KiB |
|
@ -27,7 +27,6 @@ import com.shatteredpixel.shatteredpixeldungeon.windows.WndMessage;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndOptions;
|
||||
import com.watabou.noosa.Game;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.watabou.utils.Bundle;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -190,7 +189,11 @@ public class BloodthirstyThorn extends MeleeWeapon {
|
|||
}
|
||||
|
||||
//返回圣杯一致的等级
|
||||
if(chaliceOfBlood!=null){
|
||||
bloodthirstyThorn.level=chaliceOfBlood.level();
|
||||
} else {
|
||||
bloodthirstyThorn.level=Random.NormalIntRange(3,6);
|
||||
}
|
||||
|
||||
bloodthirstyThorn.quantity(1).identify();
|
||||
|
||||
|
@ -272,37 +275,7 @@ public class BloodthirstyThorn extends MeleeWeapon {
|
|||
|
||||
}
|
||||
|
||||
//动态改变图标1
|
||||
@Override
|
||||
public void restoreFromBundle(Bundle bundle) {
|
||||
super.restoreFromBundle(bundle);
|
||||
super.image = ItemSpriteSheet.BloodDir;
|
||||
if (level() >= 5) {
|
||||
super.image = ItemSpriteSheet.BloodDied;
|
||||
//在载入存档更新图标的同时更新攻击范围
|
||||
RCH=2;
|
||||
ACC = 1.95f;
|
||||
} else {
|
||||
super.image = ItemSpriteSheet.BloodDir;
|
||||
}
|
||||
}
|
||||
|
||||
//动态改变图标2
|
||||
@Override
|
||||
public void storeInBundle(Bundle bundle) {
|
||||
super.storeInBundle(bundle);
|
||||
super.image = ItemSpriteSheet.BloodDir;
|
||||
if (level() >= 5) {
|
||||
//在保存存档更新图标的同时更新攻击范围
|
||||
super.image = ItemSpriteSheet.BloodDied;
|
||||
RCH=2;
|
||||
ACC = 1.95f;
|
||||
} else {
|
||||
super.image = ItemSpriteSheet.BloodDir;
|
||||
}
|
||||
}
|
||||
|
||||
//动态改变图标3
|
||||
//动态改变图标与范围
|
||||
@Override
|
||||
public int image() {
|
||||
super.image = ItemSpriteSheet.BloodDir;
|
||||
|
|
|
@ -274,12 +274,31 @@ public class GameNewsScene extends PixelScene { //定义GameNewsScene类,继
|
|||
if (index == 0) {
|
||||
// 如果是桌面版就打开桌面版的下载链接,否则打开安卓版的下载链接
|
||||
if (DeviceCompat.isDesktop()) {
|
||||
ShatteredPixelDungeon.scene().add(new WndOptions(Icons.get(Icons.CHANGES),
|
||||
article.title,
|
||||
article.summary,
|
||||
"JAR版下载","NoJVM-版本下载") {
|
||||
@Override
|
||||
protected void onSelect(int index) {
|
||||
if (index == 0) {
|
||||
ShatteredPixelDungeon.platform.openURI(article.DesktopURL);
|
||||
} else {
|
||||
ShatteredPixelDungeon.platform.openURI(article.URL);
|
||||
ShatteredPixelDungeon.platform.openURI("https://lingasdj.lanzouo.com/b05rqansf");
|
||||
}
|
||||
Gdx.app.exit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
//
|
||||
}
|
||||
});
|
||||
} else {
|
||||
ShatteredPixelDungeon.platform.openURI(article.URL);
|
||||
Gdx.app.exit();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user