You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ You must go through 10 randomly generated dungeons fighting monsters along the w
21
21
22
22
During each battle you may 'Attack' in which case you and the monster both trade blows. You can 'Heal' for 10% of you maxmium health and the monster does less damage or exit the game.
23
23
24
-
On each level you are trying to get the the down stairs which is represented by "<". While the player is a "@". Doors are "$" currently they don't do anything special, but that will likely change in a furture verison.
24
+
On each level you are trying to get the the down stairs which is represented by "<". While the player is a "@". Doors are "$" & "!" "$" doors are unlocked and can just be walked through. "!" howvere are locked. You can currently try to break down the door if your strength is greater than 60, pick the lock if your Luck is greater than 60. Or you can use keys which can be found after defeating some monsters.
25
25
26
26
Like I said there is not a lot to the game as of right now but that is partly why I'm putting the game here so I can get feedback and ideas on how to improve the game.
cout<<"Defence (DEF) - Effects how much damage you take."<<endl;
885
887
cout<<"Luck (LUK) - The random chance things will go your way, with dodges, crits, and rare modifiers that appear on monsters."<<endl;
886
888
unsignedchar intSkillPointsLeft = 100;
889
+
StatsGoto:
887
890
cout<<"You have "<< (int)intSkillPointsLeft <<" points to spend however you desire on these five stats, however each stat must have at least 1 point."<<endl;
888
891
do
889
892
{
@@ -896,6 +899,11 @@ char PlayerInitialize()
896
899
}
897
900
intStr = floor(intStr);
898
901
}while (intStr < 1);
902
+
if (intStr >= intSkillPointsLeft)
903
+
{
904
+
cout<<"\nYou used too many points please try again!\n";
905
+
goto StatsGoto;
906
+
}
899
907
intSkillPointsLeft -= intStr;
900
908
//A check to see if they put too many points into a stat
901
909
//Since each stat must have at least 1 point
@@ -916,6 +924,11 @@ char PlayerInitialize()
916
924
}
917
925
intCons = floor(intCons);
918
926
}while (intCons <1);
927
+
if (intCons >= intSkillPointsLeft)
928
+
{
929
+
cout<<"\nYou used too many points please try again!\n";
930
+
goto StatsGoto;
931
+
}
919
932
intSkillPointsLeft -= intCons;
920
933
if(intSkillPointsLeft < 3)
921
934
{
@@ -934,6 +947,11 @@ char PlayerInitialize()
934
947
}
935
948
intDef = floor(intDef);
936
949
}while (intDef <1);
950
+
if (intDef >= intSkillPointsLeft)
951
+
{
952
+
cout<<"\nYou used too many points please try again!\n";
953
+
goto StatsGoto;
954
+
}
937
955
intSkillPointsLeft -= intDef;
938
956
if(intSkillPointsLeft < 2)
939
957
{
@@ -952,6 +970,11 @@ char PlayerInitialize()
952
970
}
953
971
intDex = floor(intDex);
954
972
}while (intDex < 1);
973
+
if (intDex >= intSkillPointsLeft)
974
+
{
975
+
cout<<"\nYou used too many points please try again!\n";
0 commit comments