-
Notifications
You must be signed in to change notification settings - Fork 0
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
03f272d
commit 44b8190
Showing
6 changed files
with
67 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import Gun from './Gun' | ||
import * as m from '../Magazine' | ||
import * as b from '../Bullet' | ||
import event from '../Event' | ||
|
||
export default class GunWelrodMk1 extends Gun | ||
{ | ||
protected name: string = 'ウェルロッドMk.1'; | ||
protected semiAuto: boolean = false | ||
|
||
setMagazine(magazine: m.Magazine): boolean { | ||
if (magazine instanceof m.MagazineWelrodMk1) { | ||
return super.setMagazine(magazine) | ||
} | ||
|
||
event.emit('Gun.SetMagazine.Error.Compatibility', { gun: this, magazine: magazine }) | ||
return false; | ||
} | ||
|
||
setBullet(bullet: b.Bullet | undefined = undefined): boolean { | ||
if (bullet instanceof b.Bullet9mm || bullet === undefined) { | ||
return super.setBullet(bullet) | ||
} | ||
|
||
event.emit('Gun.SetBullet.Error.Compatibility', { gun: this, bullet: bullet }) | ||
return false; | ||
} | ||
|
||
shotSound(bullet: b.Bullet): string { | ||
return '< プシュッ >' | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Magazine from './Magazine' | ||
import * as b from '../Bullet' | ||
import event from '../Event' | ||
|
||
export default class MagazineWelrodMk1 extends Magazine | ||
{ | ||
protected name: string = 'ウェルロッドMk1マガジン'; | ||
protected max: number = 5; | ||
|
||
pushBullet(bullet: b.Bullet): boolean { | ||
if (bullet instanceof b.Bullet9mm) { | ||
return super.pushBullet(bullet) | ||
} | ||
|
||
event.emit('Magazine.PushBullet.Error.Compatibility', { magazine: this, bullet: bullet }) | ||
return false; | ||
} | ||
} |
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