s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
KeyboardWarriors!
Released
Dive into a pixelated 2D world of text-based combat and strategy! Advance through ranks and fight an ever-increasing opponent!
by 303 game
updated 20 days ago
9.7MB
thumb_up_alt8 thumb_down_alt12 favorite10 library_books0
homeDetailsnewspaperNewshistoryChangesforumForumreviewsReview3codeSourcequery_statsMetrics
leaderboardPlayer Counts
folder.obj
description__compiler_extra.cs
folderMainHud
descriptionAchievementManager.cs
descriptionActionResult.cs
descriptionAI.cs
descriptionBlackjackEventRunner.cs
descriptionChoiceEvent.cs
descriptionCombatManager.cs
descriptionDiceDuelEventRunner.cs
descriptionEnemyData.cs
descriptionEventFighters.cs
descriptionEventLog.cs
descriptionFighter.cs
bug_reportGameManager.cs
descriptionGameState.cs
bug_reportKeyboardWarriorsHUD.razor
descriptionkeyboardwarriorshud.razor.scss
descriptionMontyHallEventRunner.cs
descriptionOre.cs
descriptionPlayer.cs
bug_reportProgram.cs
descriptionRandomEventManager.cs
descriptionSessionStatModifiers.cs
descriptionShopHUD.razor
descriptionshophud.razor.scss
descriptionSpellManager.cs
descriptionUnoDuelEventRunner.cs
descriptionWeapon.cs
descriptionAssembly.cs
MainHud/Fighter.cs

Defines the Fighter data model, storing health, attack, defense, and a cursed status.

using System;
using System.Collections.Generic;

namespace Keyboard_Warriors_.Models
{
	public struct Fighter
	{
		public int Hp { get; set; }
		public int Attack { get; set; }
		public int Defense { get; set; }
		public bool Cursed { get; set; }

		public Fighter( int hp, int attack, int defense, bool cursed = false )
		{
			Hp = hp;
			Attack = attack;
			Defense = defense;
			Cursed = cursed;
		}
	}
}

Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter