-
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
Showing
6 changed files
with
54 additions
and
15 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
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,33 @@ | ||
using MIST.AI; | ||
using SadConsole; | ||
using SadRogue.Primitives; | ||
|
||
namespace MIST.items.Mellees | ||
{ | ||
public class sword : IMelleeItem | ||
{ | ||
public ItemType Type => ItemType.Mellee; | ||
|
||
public Info Info => new Info("sword", "a dagger, but longer."); | ||
|
||
private GameObject ThisObject; | ||
public GameObject? Object { get => ThisObject; set => ThisObject = value; } | ||
|
||
public int actioncost => 185; | ||
|
||
public sword(UI ui, IScreenSurface surface) | ||
{ | ||
ThisObject = new GameObject(new ColoredGlyph(Color.Orange, Color.Black, '/'), new Point(0, 0), surface, null, Info, null, ui); | ||
} | ||
|
||
public int CritWeaponAttack(GameObject target) | ||
{ | ||
return 10; | ||
} | ||
|
||
public int WeaponAttack(GameObject target) | ||
{ | ||
return 7; | ||
} | ||
} | ||
} |