Update SpawnWeapon.java
This commit is contained in:
parent
47262359f0
commit
c9e8e532cb
|
@ -111,7 +111,8 @@ public class SpawnWeapon extends TestItem{
|
||||||
wpn.identify();
|
wpn.identify();
|
||||||
GameScene.pickUp(wpn,hero.pos);
|
GameScene.pickUp(wpn,hero.pos);
|
||||||
Sample.INSTANCE.play(Assets.Sounds.ITEM);
|
Sample.INSTANCE.play(Assets.Sounds.ITEM);
|
||||||
} else if(wpn.collect()) {
|
}
|
||||||
|
if(wpn.collect()) {
|
||||||
GameScene.pickUp( wpn, hero.pos );
|
GameScene.pickUp( wpn, hero.pos );
|
||||||
Sample.INSTANCE.play( Assets.Sounds.ITEM );
|
Sample.INSTANCE.play( Assets.Sounds.ITEM );
|
||||||
GLog.i(Messages.get(hero, "you_now_have", wpn.name()));
|
GLog.i(Messages.get(hero, "you_now_have", wpn.name()));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user