From ee600d74a1b7f7b027dfdb05d78921b50c13e6d6 Mon Sep 17 00:00:00 2001 From: Kevin Eady <8634912+KevinEady@users.noreply.github.com> Date: Wed, 7 Feb 2024 23:06:59 +0100 Subject: [PATCH] Changes to support pol 100.1 - `true` and `false` keywords - boat piloting mount piece --- pkg/commands/gm/summon.inc | 2 +- pkg/multis/boat/config/itemdesc.cfg | 16 ++++++++++++++++ pkg/systems/attributes/include/skills.inc | 6 +++--- pkg/systems/merchantnodes/include/nodeEvents.inc | 8 -------- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/pkg/commands/gm/summon.inc b/pkg/commands/gm/summon.inc index 90baa8f07..0bfbfc539 100644 --- a/pkg/commands/gm/summon.inc +++ b/pkg/commands/gm/summon.inc @@ -15,7 +15,7 @@ function summon_creature( caster, circle := 8, npctemplate, cast_loc, gate) sleep(2); thecritter := CreateNpcFromTemplate(npctemplate, 5849, 1207, 0, parms, caster.realm); if(npctemplate == "daemon") - thecritter.setCriminal(1);w + thecritter.setCriminal(1); caster.setCriminal(1); endif MoveObjectToLocation(thecritter, cast_loc.x, cast_loc.y, cast_loc.z, thecritter.realm, MOVEOBJECT_FORCELOCATION); diff --git a/pkg/multis/boat/config/itemdesc.cfg b/pkg/multis/boat/config/itemdesc.cfg index d202b7904..42b7e44be 100644 --- a/pkg/multis/boat/config/itemdesc.cfg +++ b/pkg/multis/boat/config/itemdesc.cfg @@ -32,6 +32,12 @@ Item 0x1F011 OldObjType 0xF011 } +Item 0x1f01c +{ + SaveOnExit 0 + Graphic 0x3E96 +} + Item 0x1F012 { Name Starboard_Plank @@ -88,6 +94,16 @@ Item 0x1F017 CanInsertScript tiller/canInsert } +Item 0x1F014 +{ + Name Rope +# Note, graphic will get replaced by what's in boats.cfg + graphic 1 + script mooringLine + UseRequiresLOS 0 + DoubleClickRange 5 +} + Item 0x1F018 { Name Rudder diff --git a/pkg/systems/attributes/include/skills.inc b/pkg/systems/attributes/include/skills.inc index e636ac18d..8720329ff 100644 --- a/pkg/systems/attributes/include/skills.inc +++ b/pkg/systems/attributes/include/skills.inc @@ -309,11 +309,11 @@ function GetTrueEffectiveSkill(who, skillid) var base := GetAttributeBaseValue(who, id); var mod1 := GetAttributeTemporaryMod(who, id); var mod2 := GetAttributeIntrinsicMod(who, id); - var true := Cdbl((base + mod1 + mod2)/ 10.0); - if(true < 0.0) + var val := Cdbl((base + mod1 + mod2)/ 10.0); + if(val < 0.0) return 0.0; else - return true; + return val; endif endfunction diff --git a/pkg/systems/merchantnodes/include/nodeEvents.inc b/pkg/systems/merchantnodes/include/nodeEvents.inc index 93fce0cbf..3c0671872 100644 --- a/pkg/systems/merchantnodes/include/nodeEvents.inc +++ b/pkg/systems/merchantnodes/include/nodeEvents.inc @@ -12,11 +12,3 @@ enum MN_EVENTS SPAWN_EVENT := 0x80, UPDATE_EVENT := 0x100 endenum - -// Kind of silly but these are here for the two scripts started, -// makes the second parameter passed in the array more clear as -// to what is going on... -enum SCRIPT_OPTS - FALSE := 0x0, - TRUE := 0x1 -endenum \ No newline at end of file