Skip to content

Commit

Permalink
INTERNAL ONLY - added size category to weapons "Normal, Barbarian, La…
Browse files Browse the repository at this point in the history
…rge, Enormous"
  • Loading branch information
Thorin Schmidt committed Oct 13, 2017
1 parent f73d650 commit 5298169
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ private EquipmentDB() {
equipment.add(new Equipment(R.string.rations, 0, 1, 2, "One Day's Worth Of Food"));
equipment.add(new Equipment(R.string.waterskin, 1, 1, 2, "A Skin Full of Water"));

//(resID, encumbrance, qty, costInSilver, longDescription, dmgDie, numDice, dmgBonus, type)
weapons.add(new Weapon(R.string.barb_axe, 2, 1, 30, "Large, Ugly Axe!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.barb_club, 2, 1, 0, "Large, Heavy Club!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.barb_sword, 2, 1, 60, "Large, Ugly, Heavy Sword!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.barb_mace, 2, 1, 30, "Large, Ugly Mace!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.dagger, 0, 1, 15, "Small Sinister dagger!", 3, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.throw_knife, 0, 1, 15, "A knife made for throwing!", 3, 1, 0, R.string.missile));
weapons.add(new Weapon(R.string.axe, 1, 1, 30, "A Nasty, Wicked Axe!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.club, 1, 1, 0, "A not-so-heavy Club!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.sword, 1, 1, 60, "A Dangerous, Deadly Blade!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.spear, 2, 1, 30, "Wicked, Deadly Spear!", 6, 1, 0, R.string.melee));
weapons.add(new Weapon(R.string.bow, 1, 1, 40, "Standard Bow", 6, 1, 0, R.string.missile, 300));
weapons.add(new Weapon(R.string.sling, 0, 1, 5, "Standard Sling", 6, 1, 0, R.string.missile, 150));
weapons.add(new Weapon(R.string.javelin, 2, 1, 30, "A Deadly Javelin", 6, 1, 0, R.string.missile));
weapons.add(new Weapon(R.string.arrows, 1, 12, 12, "A quiver of Arrows", 0, 0, 0, R.string.missile));
weapons.add(new Weapon(R.string.slingshot, 1, 10, 2, "A Small Sack of Sling Stones", 0, 0, 0, R.string.missile));
//(resID, encumbrance, qty, costInSilver, longDescription, dmgDie, numDice, dmgBonus, type, size, range)
weapons.add(new Weapon(R.string.barb_axe, 2, 1, 30, "Large, Ugly Axe!", 6, 1, 0, R.string.melee, R.string.size_barbarian, 0));
weapons.add(new Weapon(R.string.barb_club, 2, 1, 0, "Large, Heavy Club!", 6, 1, 0, R.string.melee, R.string.size_barbarian, 0));
weapons.add(new Weapon(R.string.barb_sword, 2, 1, 60, "Large, Ugly, Heavy Sword!", 6, 1, 0, R.string.melee, R.string.size_barbarian, 0));
weapons.add(new Weapon(R.string.barb_mace, 2, 1, 30, "Large, Ugly Mace!", 6, 1, 0, R.string.melee, R.string.size_barbarian, 0));
weapons.add(new Weapon(R.string.dagger, 0, 1, 15, "Small Sinister dagger!", 3, 1, 0, R.string.melee, R.string.size_normal, 0));
weapons.add(new Weapon(R.string.throw_knife, 0, 1, 15, "A knife made for throwing!", 3, 1, 0, R.string.missile, R.string.size_normal, 0));
weapons.add(new Weapon(R.string.axe, 1, 1, 30, "A Nasty, Wicked Axe!", 6, 1, 0, R.string.melee, R.string.size_normal, 0));
weapons.add(new Weapon(R.string.club, 1, 1, 0, "A not-so-heavy Club!", 6, 1, 0, R.string.melee, R.string.size_normal, 0));
weapons.add(new Weapon(R.string.sword, 1, 1, 60, "A Dangerous, Deadly Blade!", 6, 1, 0, R.string.melee, R.string.size_normal, 0));
weapons.add(new Weapon(R.string.spear, 2, 1, 30, "Wicked, Deadly Spear!", 6, 1, 0, R.string.melee, R.string.size_normal, 0));
weapons.add(new Weapon(R.string.bow, 1, 1, 40, "Standard Bow", 6, 1, 0, R.string.missile, R.string.size_normal, 300));
weapons.add(new Weapon(R.string.sling, 0, 1, 5, "Standard Sling", 6, 1, 0, R.string.missile, R.string.size_normal, 150));
weapons.add(new Weapon(R.string.javelin, 2, 1, 30, "A Deadly Javelin", 6, 1, 0, R.string.missile, R.string.size_normal, 150));
weapons.add(new Weapon(R.string.arrows, 1, 12, 12, "A quiver of Arrows", 0, 0, 0, R.string.missile, R.string.size_normal, 0));
weapons.add(new Weapon(R.string.slingshot, 1, 10, 2, "A Small Sack of Sling Stones", 0, 0, 0, R.string.missile, R.string.size_normal, 0));

//(resID, encumbrance, qty, costInSilver, longDescription, defenseBonus)
armor.add(new Armor(R.string.breastplate, 3, 1, 150, "A Sturdy, Functional Breastplate", 2));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,37 @@ public class Weapon extends Equipment {
private int mNumberOfDice;
private int mDamageBonus;
private int mWeaponType; //uses string values melee and missile
private int mRange = 0;
private int mWeaponSize; //uses string values from game_references.xml
private int mRange;

public Weapon(int resId, int encumberance, int quantity, double costInSp,
/**public Weapon(int resId, int encumberance, int quantity, double costInSp,
String longDescription, int damageDie, int numberOfDice, int damageBonus,
int weaponType) {
int weaponType, int weaponSize) {
super(resId, encumberance, quantity, costInSp, longDescription);
mDamageDie = damageDie;
mNumberOfDice = numberOfDice;
mDamageBonus = damageBonus;
mWeaponType = weaponType;
}

mWeaponSize = weaponSize;
}*/

/**
* weapon constructor
* @param resId
* @param encumberance
* @param quantity
* @param costInSp
* @param longDescription
* @param damageDie
* @param numberOfDice
* @param damageBonus
* @param weaponType
* @param weaponSize
* @param range
*/
public Weapon(int resId, int encumberance, int quantity, double costInSp,
String longDescription, int damageDie, int numberOfDice, int damageBonus,
int weaponType, int range) {
int weaponType, int weaponSize, int range) {
super(resId, encumberance, quantity, costInSp, longDescription);
mDamageDie = damageDie;
mNumberOfDice = numberOfDice;
Expand Down Expand Up @@ -74,6 +90,14 @@ public void setRange(int range) {
mRange = range;
}

public int getWeaponSize() {
return mWeaponSize;
}

public void setWeaponSize(int weaponSize) {
mWeaponSize = weaponSize;
}

@Override
public String toString() {
return super.toString() +"\n" +
Expand Down
6 changes: 6 additions & 0 deletions MazesAndMinotaurs/app/src/main/res/values/game_references.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<string name="hunter_talent">Hunting</string>
<string name="thief_talent">Thievery</string>

<!-- Weapon Size Categories -->
<string name="size_normal">Normal</string>
<string name="size_barbarian">Barbarian</string>
<string name="size_large">Large</string>
<string name="size_enormous">Enormous</string>

<!-- Deities -->
<string name="aphrodite">Aphrodite</string>
<string name="apollo">Apollo</string>
Expand Down
2 changes: 1 addition & 1 deletion MazesAndMinotaurs/instapk.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Oct 12, 2017 12:14:59 PM com.pytenlabs.instapk.helpers.LogHelper init
Oct 13, 2017 1:32:17 PM com.pytenlabs.instapk.helpers.LogHelper init
INFO: Windows 7, 6.1, amd64, Android Studio AI-162.2228.14

0 comments on commit 5298169

Please sign in to comment.