Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TalesMUD/talesmud
/ functions
Functions
2,537 in github.com/TalesMUD/talesmud
⨍
Functions
2,537
◇
Types & classes
440
Method
Store
(spawner *npc.NPCSpawner)
pkg/repository/interfaces.go:182
Method
Store
(lootTable *items.LootTable)
pkg/repository/interfaces.go:194
Method
Store
(quest *quests.Quest)
pkg/repository/interfaces.go:213
Method
Store
(progress *quests.QuestProgress)
pkg/repository/interfaces.go:226
Method
Store
(skill *skills.Skill)
pkg/repository/interfaces.go:237
Method
Store
(session *entities.GuestStatSession)
pkg/repository/interfaces.go:252
Method
Store
(script *s.Script)
pkg/repository/scripts_sqlite.go:70
Method
Store
(n *npc.NPC)
pkg/repository/npcs_sqlite.go:78
Method
Store
(quest *quests.Quest)
pkg/repository/quests_sqlite.go:80
Method
SupportsLanguage
SupportsLanguage returns true if the runner supports the given language
pkg/scripts/runner/defaultscriptrunner.go:43
Method
SupportsLanguage
SupportsLanguage returns true if any runner supports the given language
pkg/scripts/runner/factory.go:73
Method
SupportsLanguage
SupportsLanguage returns true if the runner supports the given language
pkg/scripts/runner/lua/luarunner.go:82
Function
Ta
(e)
public/mud-client/public/bundle.js:26
Function
TestApplyAttributeSpend_Basic
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:77
Function
TestApplyAttributeSpend_Cumulative
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:110
Function
TestApplyAttributeSpend_NilSpentMap
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:95
Function
TestApplyLevelUpFullIntegration
TestApplyLevelUpFullIntegration tests the full level-up flow
pkg/mudserver/game/leveling/leveling_test.go:254
Function
TestAttributeScalingNoGains
TestAttributeScalingNoGains tests levels where no attributes are gained
pkg/mudserver/game/leveling/leveling_test.go:242
Function
TestAttributeScalingPartialLevels
TestAttributeScalingPartialLevels tests attribute gains for partial level ranges
pkg/mudserver/game/leveling/leveling_test.go:227
Function
TestAttributeScalingPrimary
TestAttributeScalingPrimary tests +1 primary attribute every 5 levels
pkg/mudserver/game/leveling/leveling_test.go:187
Function
TestAttributeScalingSecondary
TestAttributeScalingSecondary tests +1 secondary attribute every 10 levels
pkg/mudserver/game/leveling/leveling_test.go:213
Function
TestBossesRequireHigherLevel
--- Balance Tests: Bosses should be hard ---
pkg/mudserver/game/combat/combat_sim_test.go:201
Function
TestCalculateEnemyGoldRewardDifficulty
(t *testing.T)
pkg/mudserver/game/leveling/gold_rewards_test.go:31
Function
TestCalculateEnemyGoldRewardMaxAlwaysGreaterThanMin
(t *testing.T)
pkg/mudserver/game/leveling/gold_rewards_test.go:85
Function
TestCalculateEnemyGoldRewardMinimums
(t *testing.T)
pkg/mudserver/game/leveling/gold_rewards_test.go:61
Function
TestCalculateEnemyGoldRewardNormal
(t *testing.T)
pkg/mudserver/game/leveling/gold_rewards_test.go:5
Function
TestClassAttributeCaps_AllClassesHaveAllAttributes
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:173
Function
TestClassAttributeCaps_UnknownClass
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:190
Function
TestClassAttributeCaps_WarriorFavorsSTR
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:199
Function
TestClassAttributeCaps_WizardFavorsINT
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:207
Function
TestClassAttributeMapping
TestClassAttributeMapping tests that each class has correct primary/secondary attributes
pkg/mudserver/game/leveling/leveling_test.go:370
Function
TestEnemyXPReward
TestEnemyXPReward tests XP calculation for enemies
pkg/mudserver/game/leveling/leveling_test.go:311
Function
TestExplorationXPAlreadyDiscovered
(t *testing.T)
pkg/mudserver/game/leveling/xp_sources_test.go:39
Function
TestExplorationXPNewArea
(t *testing.T)
pkg/mudserver/game/leveling/xp_sources_test.go:22
Function
TestExplorationXPNewRoom
(t *testing.T)
pkg/mudserver/game/leveling/xp_sources_test.go:5
Function
TestExplorationXPNilMaps
(t *testing.T)
pkg/mudserver/game/leveling/xp_sources_test.go:56
Function
TestExplorationXPNoAreaName
(t *testing.T)
pkg/mudserver/game/leveling/xp_sources_test.go:71
Function
TestFullBalanceMatrix
--- Full Balance Matrix (informational, does not fail) ---
pkg/mudserver/game/combat/combat_sim_test.go:242
Function
TestGetDifficultyGoldMultiplier
(t *testing.T)
pkg/mudserver/game/leveling/gold_rewards_test.go:118
Function
TestGetXPForNextLevel
TestGetXPForNextLevel tests the XP remaining calculation
pkg/mudserver/game/leveling/leveling_test.go:334
Function
TestGetXPProgress
TestGetXPProgress tests the progress percentage calculation
pkg/mudserver/game/leveling/leveling_test.go:351
Function
TestHPScalingVeryLowSTA
TestHPScalingVeryLowSTA tests that minimum HP is gained even with very low STA
pkg/mudserver/game/leveling/leveling_test.go:171
Function
TestHPScalingWarrior
TestHPScalingWarrior tests HP scaling for high-STA class
pkg/mudserver/game/leveling/leveling_test.go:117
Function
TestHPScalingWizard
TestHPScalingWizard tests HP scaling for low-STA class
pkg/mudserver/game/leveling/leveling_test.go:153
Function
TestHollowKnightSweetSpot
TestHollowKnightSweetSpot focuses on finding the right HK stats for ~20-30% at L6, ~5% at L5
pkg/mudserver/game/combat/combat_balance_analysis_test.go:169
Function
TestLevel1VsSameLevelEnemies
--- Balance Tests: L1 vs Same-Level Normal Enemies ---
pkg/mudserver/game/combat/combat_sim_test.go:98
Function
TestLevel1VsTrivialEnemies
--- Balance Tests: L1 vs Trivial Enemies ---
pkg/mudserver/game/combat/combat_sim_test.go:70
Function
TestLevel5VsLevel2Enemies
--- Balance Tests: L5 vs L2 Enemies (the original bug scenario) ---
pkg/mudserver/game/combat/combat_sim_test.go:130
Function
TestLevelScaling
--- Level Scaling ---
pkg/mudserver/game/combat/combat_sim_test.go:48
Function
TestLevelUpAtMaxCap
TestLevelUpAtMaxCap tests that level 50 is the hard cap
pkg/mudserver/game/leveling/leveling_test.go:86
Function
TestLevelUpAwardsPoints
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:125
Function
TestLevelUpAwardsPoints_Accumulates
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:158
Function
TestLevelUpAwardsPoints_MultiLevel
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:141
Function
TestLevelUpJustBelowThreshold
TestLevelUpJustBelowThreshold tests that XP just below threshold doesn't level up
pkg/mudserver/game/leveling/leveling_test.go:103
Function
TestLevelUpMessageIncludesPoints
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:221
Function
TestLevelUpMultipleLevels
TestLevelUpMultipleLevels tests gaining multiple levels at once
pkg/mudserver/game/leveling/leveling_test.go:69
Function
TestLevelUpSingleLevel
TestLevelUpSingleLevel tests leveling from 1 to 2
pkg/mudserver/game/leveling/leveling_test.go:52
Function
TestPointsPerLevelConstant
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:215
Function
TestRollEnemyGold
(t *testing.T)
pkg/mudserver/game/leveling/gold_rewards_test.go:102
Function
TestSameLevelVsNormalEnemies
--- Balance Tests: Same Level vs Normal Enemies ---
pkg/mudserver/game/combat/combat_sim_test.go:162
Function
TestStatDiagnostics
--- Stat Diagnostics ---
pkg/mudserver/game/combat/combat_sim_test.go:13
Function
TestValidateAttributeSpend_AlreadyAtCap
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:66
Function
TestValidateAttributeSpend_ExceedsCap
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:49
Function
TestValidateAttributeSpend_InsufficientPoints
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:19
Function
TestValidateAttributeSpend_InvalidAttribute
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:29
Function
TestValidateAttributeSpend_NegativeAmount
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:39
Function
TestValidateAttributeSpend_Valid
(t *testing.T)
pkg/mudserver/game/leveling/attribute_caps_test.go:9
Function
TestWarriorBalanceAnalysis
TestWarriorBalanceAnalysis runs detailed "what-if" scenarios for Warrior tuning
pkg/mudserver/game/combat/combat_balance_analysis_test.go:13
Function
TestXPCurveFormula
TestXPCurveFormula verifies the XP formula produces values close to expected targets
pkg/mudserver/game/leveling/leveling_test.go:10
Function
TestXPTableGeneration
TestXPTableGeneration verifies the precomputed XP table matches formula
pkg/mudserver/game/leveling/leveling_test.go:39
Function
TimeTrack
TimeTrack ... see https://coderwall.com/p/cp5fya/measuring-execution-time-in-go
pkg/util/timetrack.go:9
Method
ToEntity
ToEntity converts a YAMLRoom to a Room entity
pkg/importer/converters.go:20
Method
ToEntity
ToEntity converts a YAMLItem to an Item entity
pkg/importer/converters.go:100
Method
ToEntity
ToEntity converts a YAMLScript to a Script entity
pkg/importer/converters.go:244
Method
ToEntity
ToEntity converts a YAMLDialog to a Dialog entity The YAML format uses a flat map of nodes, we need to convert to a tree structure
pkg/importer/converters.go:257
Method
ToEntity
ToEntity converts a YAMLLootTable to a LootTable entity
pkg/importer/converters.go:322
Method
ToEntity
ToEntity converts a YAMLSpawner to an NPCSpawner entity
pkg/importer/converters.go:368
Method
ToEntity
ToEntity converts a YAMLQuest to a Quest entity
pkg/importer/converters.go:387
Method
ToEntity
ToEntity converts a YAMLSkill to a Skill entity
pkg/importer/converters.go:443
Function
Uf
()
public/mud-client/public/bundle.js:26
Function
Ui
(e,t,n)
public/mud-client/public/bundle.js:26
Method
UnbanUser
UnbanUser removes the ban from a user by ID.
pkg/service/users.go:123
Method
UnbanUser
UnbanUser removes a ban from a user by ID (admin only).
pkg/server/handler/usermanagement.go:61
Method
UnmarshalYAML
UnmarshalYAML handles both string and object formats for room items
pkg/importer/models.go:31
Method
UnmarshalYAML
UnmarshalYAML handles both list and object formats for coordinates
pkg/importer/models.go:85
Method
Unregister
Unregister removes a script handler for an event
pkg/scripts/events/registry.go:81
Method
UnregisterAll
UnregisterAll removes all handlers for a script
pkg/scripts/events/registry.go:96
Method
UnregisterNPC
UnregisterNPC removes an NPC from the combat lookup map
pkg/mudserver/game/combat/manager.go:102
Method
UnregisterPlayer
UnregisterPlayer removes a player from the combat lookup map
pkg/mudserver/game/combat/manager.go:95
Method
Unsubscribe
Unsubscribe ...
pkg/mudserver/game/game.go:100
Method
Update
(s *settings.ServerSettings)
pkg/service/server_settings.go:11
Method
Update
(s *settings.ServerSettings)
pkg/service/server_settings.go:27
Method
Update
Update updates a skill and refreshes the cache.
pkg/service/skills.go:69
Method
Update
Update overrides the repository update to set updated timestamp
pkg/service/npcspawners.go:33
Method
Update
(id string, quest *quests.Quest)
pkg/service/quests.go:86
Method
Update
(item interface{}, id string)
pkg/repository/sqlite_generic.go:157
Method
Update
(id string, charachterSheet *e.Character)
pkg/repository/characters_sqlite.go:81
Method
Update
(id string, conv *conversations.Conversation)
pkg/repository/conversations_sqlite.go:91
Method
Update
(id string, s *npc.NPCSpawner)
pkg/repository/npcspawners_sqlite.go:90
Method
Update
(id string, room *r.Room)
pkg/repository/rooms_sqlite.go:87
← previous
next →
2,001–2,100 of 2,537, ranked by callers