Skip to content

Commit

Permalink
Deprecate "place npc at" site link reservation
Browse files Browse the repository at this point in the history
This was polluting marker pool as implemented.
  • Loading branch information
Interkarma committed Sep 20, 2019
1 parent f6e5524 commit f0de15f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Assets/Scripts/Game/Questing/Actions/CreateNpcAt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Project: Daggerfall Tools For Unity
// Project: Daggerfall Tools For Unity
// Copyright: Copyright (C) 2009-2019 Daggerfall Workshop
// Web Site: http://www.dfworkshop.net
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
Expand Down Expand Up @@ -57,10 +57,9 @@ public override void Update(Task caller)
{
base.Update(caller);

// Reserve SiteLink for Place resource
// This will also be done automatically by "place npc", "place foe", etc.
if (!QuestMachine.HasSiteLink(ParentQuest, placeSymbol))
QuestMachine.CreateSiteLink(ParentQuest, placeSymbol);
// For compatibility with legacy decompiled TEMPLATE scripts only
// Has no requirement to be used in Daggerfall Unity
// Please use "place npc <anNPC> at <aPlace>" instead

// Possible historical note:
// Many quests are very strict about first reserving a site using "create npc at"
Expand Down

0 comments on commit f0de15f

Please sign in to comment.